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

fix: Adding fallback logic for readMe acquisition #8307

Merged
merged 7 commits into from Jul 9, 2021

Conversation

pavolum
Copy link
Contributor

@pavolum pavolum commented Jul 9, 2021

Description

We recently found out that pushing preview versions of packages changes where the readMe is stored in the npm registry API response.

This PR enhances the readme parsing logic to account for this api behavior.

If the readme is not at the root of the api response Composer will now look for it within the versions dictionary in the response. It searches the versions starting from the most recently published version and returning the first readMe it finds.

If no readme is found then we render error text in the readMe section of template selection as opposed to no text.

Task Item

fixes #8294

Screenshots

image

in the root of npm registry response
benbrown
benbrown previously approved these changes Jul 9, 2021
@cypress
Copy link

cypress bot commented Jul 9, 2021



Test summary

16 0 1 0Flakiness 1


Run details

Project Composer
Status Passed
Commit 136d66c
Started Jul 9, 2021 10:04 PM
Ended Jul 9, 2021 10:14 PM
Duration 10:36 💡
OS Linux Ubuntu - 20.04
Browser Electron 89

View run in Cypress Dashboard ➡️


Flakiness

cypress/integration/DesignPage.spec.ts Flakiness
1 breadcrumb > can create different kinds of triggers

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@coveralls
Copy link

coveralls commented Jul 9, 2021

Coverage Status

Coverage decreased (-0.05%) to 56.376% when pulling 136d66c on pavolum/backupLogicForReadmeCall into c97065a on main.

@pavolum pavolum merged commit 715496a into main Jul 9, 2021
@pavolum pavolum deleted the pavolum/backupLogicForReadmeCall branch July 9, 2021 22:47
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.

ReadMes not rendering for templates
5 participants