Skip to content
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(nested collections) legacy mode #7387

Merged
merged 6 commits into from
Feb 13, 2025

Conversation

demshy
Copy link
Member

@demshy demshy commented Jan 31, 2025

Summary

In response to #7384 I'm proposing a (possibly temporary) solution for collections that use the subdirectory based nested structures (changes introduced in #7359 / #6498)

This PR adds an opt-out switch to the nested configuration object.
@martinjagodic suggested subfolders as the name, but we can change it if we find a better idea. Personally, I'm leaning into something that better indicates which mode is preferred for new projects.

Test plan

The best way to test this is by using the configuration provided in #7384 and turning subfolders on/off.

Checklist

Please add a x inside each checkbox:

A picture of a cute animal (not mandatory but encouraged)

@demshy demshy requested a review from a team as a code owner January 31, 2025 11:46
@demshy
Copy link
Member Author

demshy commented Jan 31, 2025

@fgnass since you were the last person that worked on this code, I'd be grateful if you took a glance and let me know if you have any comments

martinjagodic
martinjagodic previously approved these changes Jan 31, 2025
Copy link
Member

@martinjagodic martinjagodic left a comment

Choose a reason for hiding this comment

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

LGTM, but @fgnass knows more about this code :)

@demshy
Copy link
Member Author

demshy commented Feb 12, 2025

The default state of the subfolders flag is now true, so unless specifically set to false, this will work as it did before.

I have update the tests to test the new feature by passing the subfolders: false

@demshy demshy requested a review from martinjagodic February 12, 2025 13:43
@demshy demshy merged commit b85ec3d into decaporg:main Feb 13, 2025
7 checks passed
@demshy demshy deleted the feat/legacy-nested-dirs branch February 13, 2025 07:26
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.

2 participants