Refactor: move gitea api calls in own "client" package#78
No reviewers
Labels
No labels
breaking
bug
build_pr_image
documentation
d̶u̶p̶l̶i̶c̶a̶t̶e̶
feature
good first issue
improvement
i̶n̶v̶a̶l̶i̶d̶
open questions
performance
refactor
research required
No project
No assignees
2 participants Notifications
Due date No due date set.
Blocks
#86 Add integration tests
Codeberg/pages-server
Reference
Codeberg/pages-server!78
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor-add-more-logging-and-tests"
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?
continue #75
close #16
Add more logging and teststo WIP: Add more logging and testsWIP: Add more logging and teststo WIP: Add more logging and tests & refactorWIP: Add more logging and tests & refactorto Refactor: move gitea api calls in own "client" package@ -101,3 +81,3 @@// Handle errorsif (res == nil && !cachedResponse.exists) || (res != nil && res.StatusCode() == fasthttp.StatusNotFound) {if (err != nil && errors.Is(err, gitea.ErrorNotFound)) || (res == nil && !cachedResponse.Exists) {INFO: here we can also handle 404 page
cristalls pull will already do so :)
I'm going to merge if nobody have any objections ...
pagesrepo default branch detection cde2137df0f53bae252a7eeafdbc5f@ -0,0 +40,4 @@func (p tmpDB) Compact() (string, error) {p.intern.Truncate()return "Turncate done", nilTruncate
@ -0,0 +43,4 @@}// TODOs:// * handle 404 -> page will show 500 atmIs there an open issue for that?
yes and a pull - I remove it here since it is tracked there
@ -32,3 +28,1 @@domain = strings.TrimSpace(domain)domain = strings.TrimPrefix(domain, "http://")domain = strings.TrimPrefix(domain, "https://")domain = strings.TrimPrefix(they compile to the exact same assembly and imho the old version was much better readable