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

Added 404 JSON reponse to projects.show method #3674

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

abujeda
Copy link
Contributor

@abujeda abujeda commented Jul 15, 2024

I saw that the GitHub actions tests are sometimes failing due to the ProjectsController test.

This seems to the related to the Ajax call to get the project size made by the page after the project has been deleted.
This seems to be a race condition in the test and directory cleanup.

This fix will return a JSON 404 when the project is not available avoiding the redirect and the error due to the missing JSON response for the index page.

Copy link
Contributor

@johrstrom johrstrom left a comment

Choose a reason for hiding this comment

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

Thanks!

@johrstrom johrstrom merged commit 1561d3f into OSC:master Jul 16, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants