-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[Bug]: 404 Resources not found Error When Accessing GitHub Branch #20883
Comments
Mom with @nayan-rafiq
cc - @infinitetrooper |
@AnaghHegde - Is the way forward to redirect to the homepage when the branch is switched if the active page is not presented in the checked-out branch? As you mentioned that user is looking for resources in a branch and is not necessarily on the same page across branches. |
@infinitetrooper We have to redirect the user to the default page of the chosen branch. It can be the same page or a different page. |
@AnaghHegde |
@infinitetrooper Yes, that is correct. I believe it should be possible. This has a FE dependency and I can confirm after talking to someone from the team. |
## Description After checkout, we will now check if the resource the user was accessing is available in the incoming branch. Instead of calling the apis to check this, we will listen to the success action and then handle check if the current resource is still available in the branch. If not, we will navigate the user to the home page of the app so that they do not see a 404 error > Don't show a 404 error when a resource is not available in the checked out branch, instead take them to the home page of the app Fixes #17234 Fixes #20883 Media ## Type of change - Bug fix (non-breaking change which fixes an issue) ## How Has This Been Tested? - Manual - Have a git connected app - Create a new branch - Create a new API/Query/Page on the new branch - Switch back to the original branch - Test: The app should not show 404 error but be navigated to the home page of the app - Cypress Updated the existing cypress tests that avoided the error to make sure they test the fix instead ### Test Plan > Add Testsmith test cases links that relate to this PR ### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) ## Checklist: ### Dev activity - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag ### QA activity: - [ ] Test plan has been approved by relevant developers - [ ] Test plan has been peer reviewed by QA - [ ] Cypress test cases have been added and approved by either SDET or manual QA - [ ] Organized project review call with relevant stakeholders after Round 1/2 of QA - [ ] Added Test Plan Approved label after reveiwing all Cypress test
Is there an existing issue for this?
Description
A user created a new GitHub branch, made some additions there, then could not access the branch, getting a
404 Resources not found
error. They tried to create a new branch and re-do the changes, after which they received an404
error again. However, a new branch with no modifications is accessible and works fine.For more info, check the screen recording of the bug from the Front thread.
Steps To Reproduce
You will get the error
404 Resources not found
.Public Sample App
No response
Issue video log
No response
Version
Appsmith self-hosted
The text was updated successfully, but these errors were encountered: