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

bugfix: hot-fix for blank pages on some routes #866

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

bearcott
Copy link
Contributor

@bearcott bearcott commented May 31, 2023

as noted in #865 you get a blank page when visiting pages like:

The immediate cause for the bug is the "Edit on Github" button breaking the page:
Screenshot 2023-05-30 at 7 06 06 PM

From my findings something is causing these page to render twice, the first time model.project.id is undefined for some reason. This causes the latest version check in the conditional to break. Imo avoiding this initial render would be the optimal fix so if anyone has an idea whats causing it that would be good!

For now I suggest a hot fix to check if model.project.id exists before rendering the component as well as model.file and model.line since they are also undefined for some reason. The component shouldn't be rendered anyways if any of these are undefined since it will just be a dead link.

@jenweber
Copy link
Contributor

Thank you for the hotfix! That is very odd. We recently did some version updates and I’m guessing a bug got introduced. I’ll do a click test and deploy.

@jenweber
Copy link
Contributor

jenweber commented May 31, 2023

@mansona I am wondering if we broke something at the 3.28 upgrade or in https://github.com/ember-learn/ember-api-docs/pull/862/files? Or possibly this was an earlier issue.

@jenweber
Copy link
Contributor

Actually I'll have to wait a day or so to deploy. Heroku had some service problems today, and things still seem shaky. If any fellow learning team members want to merge and deploy to staging and then prod, after the Heroku issue clears up, that would be great. Instructions are in MAINTAINERS.md. I have click tested locally and this is good to go.

The Heroku Platform API is unavailable. Customers using the API, the CLI, and the Heroku Dashboard will be unable to make changes/releases to or queries of their applications. Applications currently running will continue to run. Engineers are investigating, we'll update as we have more details.

https://status.heroku.com/

@bearcott
Copy link
Contributor Author

bearcott commented Jun 2, 2023

@jenweber thanks for the context. May I suggest possibly it's an API side issue? When I did some digging both the line and file references were undefined for Input I'm guessing may be related to deprecated builtins.

@jenweber
Copy link
Contributor

jenweber commented Jun 2, 2023

@bearcott yeah I think you are on the right track, thinking that this probably has roots in the data. Unfortunately right now, the only way to change the underlying docs data is through running new releases of the libraries themselves (like ember-data) but we are working on a fix that will let us change things after the fact! So I will try to remember this case and look for it.

@jenweber jenweber self-requested a review June 2, 2023 01:00
@jenweber jenweber merged commit e9683b3 into ember-learn:master Jun 2, 2023
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.

2 participants