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

update prerender to include a content manifest csv output #2268

Merged
merged 69 commits into from
Aug 9, 2024

Conversation

TomWoodward
Copy link
Member

@TomWoodward TomWoodward commented Jul 1, 2024

https://openstax.atlassian.net/browse/DISCO-23

adds a csv output of all book toc node info for use by reporting platforms to associate uuids with slugs with titles (for querying and output formatting in reporting dashboards)

also moved sitemap index output to queue generation to avoid loading all the books twice

@TomWoodward TomWoodward requested a review from a team as a code owner July 1, 2024 21:05
@TomWoodward TomWoodward requested a review from jivey July 1, 2024 21:05
@TomWoodward TomWoodward temporarily deployed to rex-web-content-manifes-bmoflq July 1, 2024 21:06 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-content-manifes-bmoflq July 1, 2024 21:08 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-content-manifes-bmoflq July 1, 2024 21:14 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-content-manifes-bmoflq July 2, 2024 13:00 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-content-manifes-bmoflq July 2, 2024 13:02 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-content-manifes-bmoflq July 2, 2024 13:45 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-content-manifes-bmoflq July 2, 2024 15:50 Inactive
Copy link
Member

@jivey jivey left a comment

Choose a reason for hiding this comment

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

Looks good just some minor things/questions


const quoteValue = (value?: string) => value ? `"${value.replace(/"/g, '""')}"` : '""';

export const renderAndSaveContentManfiest = async(
Copy link
Member

Choose a reason for hiding this comment

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

Manifest typo?

: [];

return [
[stripIdVersion(id), title, textTitle, book.language, ...urlParams, tocType, toc_target_type ?? ''],
Copy link
Member

Choose a reason for hiding this comment

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

I'm surprised the real (html) title gets used, but maybe the textTitle is used as the display value in the reports?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea I doubt that the html will be used by anything but I threw it in there. the text title is intended to be used by reporting I added the context number in there for the eoc pages


export const sitemapPath = (pathName: string) => `/rex/sitemaps/${pathName}.xml`;
export const contentManifestPath = (pathName: string) => `/rex/manifest/${pathName}.xml`;
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this gets used?

@TomWoodward TomWoodward requested a review from jivey July 3, 2024 20:18
@TomWoodward TomWoodward temporarily deployed to rex-web-content-manifes-bmoflq July 3, 2024 20:18 Inactive
import { SitemapPayload } from './sitemap';
import { SitemapPayload, renderAndSaveSitemapIndex } from './sitemap';
import { writeS3ReleaseXmlFile } from './fileUtils';
import { renderAndSaveContentManfiest } from './contentManifest';
Copy link
Member

Choose a reason for hiding this comment

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

Import didn't get renamed

@TomWoodward TomWoodward temporarily deployed to rex-web-content-manifes-bmoflq July 8, 2024 17:21 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-content-manifes-bmoflq July 10, 2024 16:30 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-content-manifes-bmoflq July 10, 2024 17:31 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-content-manifes-bmoflq July 10, 2024 18:45 Inactive
@TomWoodward TomWoodward requested a review from jivey August 8, 2024 18:55
@TomWoodward TomWoodward merged commit 2c13e26 into main Aug 9, 2024
8 of 9 checks passed
@TomWoodward TomWoodward deleted the content-manifest branch August 9, 2024 18:04
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.

3 participants