Skip to content

Initial commit. Separating out list generation into a helper method#849

Merged
isc-jlechtne merged 8 commits intomainfrom
fix-848
Jul 9, 2025
Merged

Initial commit. Separating out list generation into a helper method#849
isc-jlechtne merged 8 commits intomainfrom
fix-848

Conversation

@isc-jlechtne
Copy link
Copy Markdown
Contributor

Addresses #848

Idea is to create a helper method which compiles all resources into one list in their proper processing order. Lifecycle methods can then use this orderedResourceList.GetNext(.tKey) instead of ..Module.Resources.GetNext(.tKey)

@isc-jlechtne isc-jlechtne marked this pull request as ready for review July 8, 2025 18:35
Copy link
Copy Markdown
Collaborator

@isc-eneil isc-eneil left a comment

Choose a reason for hiding this comment

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

I suggested one small method description change, but otherwise looks good to me!

Property Deployed As %Boolean(XMLPROJECTION = "Element");

/// This method iterates over resources of a module and returns a list of objects in the correct order that resources should be processed
/// Process resources based on their package depth (higher level first so more granular resource will override)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@isc-jlechtne Isn't the package depth processing just for Document resources, then the rest of resources are processed in the order in which they are declared in the module's module.xml?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That is correct. Will update the method description to include that info as well

isc-jili
isc-jili previously approved these changes Jul 8, 2025
@isc-jlechtne isc-jlechtne requested a review from isc-eneil July 8, 2025 19:54
@isc-jlechtne isc-jlechtne merged commit fe21f68 into main Jul 9, 2025
11 checks passed
@isc-jlechtne isc-jlechtne deleted the fix-848 branch July 9, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants