-
Notifications
You must be signed in to change notification settings - Fork 5
Content library and import updates #423
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
Conversation
a43c50e
to
2276c02
Compare
This PR will allow me to more easily get the book-slug and module-slug tags working for Algebra 1 |
hash.each { |uuid, slugs| slugs.uniq! } | ||
end | ||
end | ||
) { OpenStax::Content::Abl.new.slugs_by_page_uuid } |
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.
So this functionality moved inside the gem?
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.
yeah pretty much
header == 'uuid' || header == 'page uuid' || header == 'section uuid' | ||
uuid_index ||= headers.index { |header| header&.end_with?('uuid') && !header.include?('book') } | ||
section_index ||= headers.index do |header| | ||
header&.start_with?('section') && !header.include?('uuid') && !header.include?('name') |
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.
Does algebra have slightly different headers? Maybe it's not a worry if we are sure about the imported format, but I just want to double check that loosening the matching is not going to be a concern.
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.
it was a mess of different headers, let me say that
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.
I can't really tell the impact of the header change but if it's looking good from your testing then maybe it's fine.
https://openstax.atlassian.net/browse/CORE-808