Fix infined load on Issues/Pulls if they dont exist #507
No reviewers
Labels
No Label
Priority-high
Accepting-merge-requests
API
API-dependency
Backport
Blocked
Brainstorming
Breaking
Bug
Changelog
CI
Cleanup
Confirmed
Discussion
Documentation
Duplicate
Enhancement
External-dependecy
F-droid
Feature
Google-play
Improvement
Invalid
Investigate
LGTM-done
LGTM-need
Long-term
Major-release
Minor-release
Needs-cleanup
Needs-feedback
Needs-help
Priority-critical
Priority-low
Priority-medium
Question
Ready
Refactor
Regression
Release
Repository
Security
Suggestion
Support
Testing
Translation
UI/UX
Upstream
Website
WIP
No Milestone
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitnex/GitNex#507
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-404-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If issues/pr are disabled, catch the correct response call and show proper layout.
close #53
can we use switch case for httpStatus checks in gennerel?
I'll pusch a commit
@mmarif I would say the first batch got in ...
@mmarif @opyale I would add a new coding rule: on a api call always check the http code since this indicate if it succeeded or not and if there are more than 2 posible codes use switch-case instead of else-if-blocks
https://try.gitea.io/api/swagger#/repository/repoGetAllCommits
-> expected returns are 200, 404 and 409 for example
Improve 404 callsto Fix infined load on Issues/Pulls if they dont exist & RefactorI am fine with it. Just curious, what are the advantages of switch over if?
@6543 This PR with the your commits became very huge and unreadable.
Can we focus on the issue and pr calls in this PR which will fix the inifinite loop issue?
Reformat code: new PR
Change to switch cases: new PR
What you think?
Fix infined load on Issues/Pulls if they dont exist & Refactorto Fix infined load on Issues/Pulls if they dont existc0eccbacd4
to67e9a694e9
@mmarif removed
fix itself works excelent