-
Notifications
You must be signed in to change notification settings - Fork 122
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
Add an AsIsLayoutStrategy #919
Conversation
Codecov ReportBase: 90.12% // Head: 90.08% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #919 +/- ##
==========================================
- Coverage 90.12% 90.08% -0.04%
==========================================
Files 47 47
Lines 6063 6079 +16
Branches 909 912 +3
==========================================
+ Hits 5464 5476 +12
- Misses 420 422 +2
- Partials 179 181 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@gadomski Sorry for the late response here, but thanks for looking at this. Those names look good to me, maybe other options would be |
Yeah, I thought about |
a7c04d8
to
01b9467
Compare
Side note: The Lines 277 to 297 in ea68043
Also, it seems logical for a Similar thoughts apply to the |
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.
Looks good with caveat (in separate PR comment) about the need to better expose the default layout strategy.
I opened #965 to capture the need to align the function signatures. |
Rebase failed
This simply passes through the existing hrefs, raising a value error if one doesn't exist.
e000b0a
to
b2ce6d0
Compare
Related Issue(s):
Description:
Currently, it's impossible to use
Catalog.add_item
but preserve theself_href
of the item. This PR adds a new layout that simply preserves the existing href, or raises a ValueError if one isn't set.I don't love the name
AsIsLayoutStrategy
, so improving suggestions are welcome! Other names I considered:NoopLayoutStrategy
PassthroughLayoutStrategy
cc @kylemann16
PR Checklist:
pre-commit run --all-files
)scripts/test
)