-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: template-level app config overrides #2531
Merged
Merged
Changes from 18 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
4d4b4c6
feat(wip): template-level layout properties
jfmcquade ba315c7
refactor: layout service -> template app config service
jfmcquade 1bc9221
chore(wip): template level app config overrides
jfmcquade cf50f91
chore: revert unnecessary changes to skin service
jfmcquade 084bef8
chore: code tidy
jfmcquade f23b773
chore: update row parser test
jfmcquade 4f7dbf4
Merge branch 'master' into feat/template-level-layout-props
jfmcquade c5c661a
chore: remove template-app-config service
chrismclarke 66a9198
refactor: app config service override hierarchy
chrismclarke 7b6152c
chore: code tidying
chrismclarke b01c0a4
fix: signal writes
chrismclarke 7cef6bc
test: add app config service test
jfmcquade c7d980e
Merge pull request #2549 from IDEMSInternational/review/2351
jfmcquade f31e5d3
refactor: use signals for template-container templatename
jfmcquade c25a107
Merge branch 'master' into feat/stacks
jfmcquade 6dd4e73
chore: error handling
jfmcquade e0679c8
fix: duplicate template render
chrismclarke 5751e8c
refactor: remove template container props type
chrismclarke 0c75151
fix: template instance signal bindings
chrismclarke fa890e1
Merge branch 'master' into feat/template-level-layout-props
chrismclarke c499404
Merge branch 'master' into feat/template-level-layout-props
jfmcquade 2a7fef8
Merge branch 'master' into feat/template-level-layout-props
chrismclarke fffa57a
Merge branch 'master' into feat/template-level-layout-props
esmeetewinkel caeb68f
Merge branch 'master' into feat/template-level-layout-props
esmeetewinkel ef374ed
Merge branch 'master' into feat/template-level-layout-props
esmeetewinkel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/app/shared/components/template/template-container.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 - I see why it would be good to parse strings from parameter lists, as long term it should help reduce some of the issues with string-only representations within parameter lists (and all the various workarounds required).
I assume cases where authors manually convert string to number via
[email protected]_value
will still work as expected+"1" === +1 === 1
, so most likely just some extra redundant code in the codebase to support conversion (e.g. getBooleanParamFromParameterList), which would also likely be easier to keep in for now (ideally tidy in the future)Equally I can't think of any immediate knock-ons, although I think might still be good to flag as a potentially breaking change so authors are aware (add clear comment to top of PR, update pr title to include
feat!
and tag withbreaking
. Authors will be able to see from content sync what has changed.Did you get a chance to quickly check sync against debug deployment to see if anything crops up? Might be easier to do once debug deployment next updated for cleaner diffs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes agreed. I've updated the PR description. It's worth noting that these changes are only used in the parsing of flow-level parameter lists (i.e. those set on flows in the contents list, not those that appear within templates) as far as I can tell, so the knock-ons are even more minimal than if it was universal (I think parameter lists in templates are already parsed more thoroughly)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, all template row parameter_lists are already going through this function so makes a lot of sense to also pass the contents through it. So I think actually likelihood of knock-ons even less, but still good to flag these things for sure