-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Progress for the amount of docs migrated so far! #182
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
| return parseInt(cur) + acc | ||
| }, 0) | ||
|
|
||
| writeSync( vfile({ |
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.
Could you make sure prettier is run on this file? It looks like this is not formatted. Thank you!
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.
yes definitely!
| const result = await resp.json(); | ||
|
|
||
| const totalCount = parseInt(result.docs[0].count.all); | ||
| const migratedCount = Object.values(ITEMS_PER_TYPE).reduce((acc, cur)=>{ |
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.
Rather than using the ITEMS_PER_TYPE, should we pass in the files array from the first step of the migration and run a .length on that? This ITEMS_PER_TYPE does not guarantee that that exact number of docs is fetched, nor does it take into account more than one page of results. Eventually we will paginate more than a single page of results.
Thoughts?
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 like that idea! I will make that change
src/announcements/beta-banner.mdx
Outdated
|
|
||
| This experimental version doesn't contain all our content, and not everything is stable. If you're looking to read our docs, go to [docs.newrelic.com](https://docs.newrelic.com). | ||
|
|
||
| So far, we have migrated **{data.migratedCount}** out of **{data.totalCount}** docs! |
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.
cc @jpvajda
Can you review this copy? Thanks!
|
once I have the copy from @jpvajda , I'll make the other updates to this PR! |
feat(beta): added an expanded anomaly doc
closes #145