Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

fix(dal): import func arguments during module update and fix PropPath… - #8335

Merged
aaron-dernley merged 1 commit into
mainfrom
fix/dal/import-func-arguments
Jan 23, 2026
Merged

aaron-dernley merged 1 commit into
mainfrom
fix/dal/import-func-arguments

Conversation

@aaron-dernley

@aaron-dernley aaron-dernley commented Jan 23, 2026 •

Copy link
Copy Markdown
Contributor

… conversion

Two fixes for module import:

  1. import_funcs_for_module_update was not importing func arguments after creating/updating funcs, causing MissingFuncArgument errors when attribute functions referenced arguments that didn't exist.

  2. create_attr_proto_arg was converting prop_path strings directly via .into() which stored the slash-separated path as a single part. PropPath uses \x0B (vertical tab) as the internal separator, so as_parts() would return the whole path as one element, causing ChildPropNotFoundByName errors. Now properly splits by '/' and constructs PropPath with the parts.

How was it tested?

  • Integration tests pass
  • Manual test: new functionality works in UI
  • Manual test: (regression check) creating a component still works
  • Manual test: Importing a clover generated schema with a new attribute func now works

Does it require a docs change?

  • No
  • Yes, and this PR includes it
  • Yes, and this PR does not include it (reasoning below)

In short: 🔗

@github-actions

github-actions Bot commented Jan 23, 2026 •

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions Bot added the A-dal label Jan 23, 2026
@aaron-dernley
aaron-dernley marked this pull request as ready for review January 23, 2026 00:30
sprutton1
sprutton1 previously approved these changes Jan 23, 2026

@sprutton1 sprutton1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of nits, but otherwise lgtm

Comment thread lib/dal/src/pkg/import.rs Outdated
Comment thread lib/dal/src/pkg/import.rs Outdated
@aaron-dernley

Copy link
Copy Markdown
Contributor Author

Made those changes based on your feedback @sprutton1 - good catches, thank you.

@aaron-dernley
aaron-dernley added this pull request to the merge queue Jan 23, 2026
Merged via the queue into main with commit e81eefb Jan 23, 2026
10 checks passed
@aaron-dernley
aaron-dernley deleted the fix/dal/import-func-arguments branch January 23, 2026 13:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants