Handle responses with custom error #14

Open
let_rec wants to merge 8 commits from feat/handle_response into main
Owner

Summary

Now relago can handle server's responses and show related message for user.

Motivation

Relago lacked a handler for handling errors such as invalid request, server problem and so on.

What have I done

  • We made requests to the server and even received what we wanted, our functions worked correctly. However, we didn't foresee any problems that could arise from requests. So, we didn't have any request handlers, so I created a new custom error handler using enum and thiserror.
  • Now, if the user doesn't have a file with identifiers or has accidentally deleted it, a new button is displayed on the graphical interface for creating it and then generating a report.

This PR solves this issue - closes #13

## Summary Now relago can handle server's responses and show related message for user. ### Motivation Relago lacked a handler for handling errors such as invalid request, server problem and so on. ### What have I done - We made requests to the server and even received what we wanted, our functions worked correctly. However, we didn't foresee any problems that could arise from requests. So, we didn't have any request handlers, so I created a new custom error handler using enum and thiserror. - Now, if the user doesn't have a file with identifiers or has accidentally deleted it, a new button is displayed on the graphical interface for creating it and then generating a report. This PR solves this issue - closes #13
chore: change default value for data_dir
Some checks failed
Test CI / test-flake (push) Successful in 1m22s
Test CI / test-project (push) Has been cancelled
db5fa2be63
feat: created custom error enum for handle responses
Some checks failed
Test CI / test-flake (push) Successful in 12s
Test CI / test-project (push) Failing after 1m5s
Test CI / test-flake (pull_request) Has been cancelled
Test CI / test-project (pull_request) Has been cancelled
e169ff957b
fix: import thiserror from workspace
Some checks failed
Test CI / test-flake (push) Has been cancelled
Test CI / test-project (push) Has been cancelled
Test CI / test-flake (pull_request) Has been cancelled
Test CI / test-project (pull_request) Has been cancelled
e6cce7a8ef
chore: use custom errors for upload function
Some checks failed
Test CI / test-flake (push) Successful in 14s
Test CI / test-project (push) Failing after 3m18s
Test CI / test-flake (pull_request) Successful in 12s
Test CI / test-project (pull_request) Failing after 1m4s
0a525f566e
feat: create new function for run setup-key
Some checks failed
Test CI / test-flake (push) Successful in 14s
Test CI / test-project (push) Failing after 1m5s
Test CI / test-flake (pull_request) Successful in 11s
Test CI / test-project (pull_request) Failing after 1m5s
4e07762c21
feat: the gui has been updated, if user doesn't have ID, a new button is displayed to launch run setup-key func
Some checks failed
Test CI / test-flake (push) Successful in 13s
Test CI / test-flake (pull_request) Has been cancelled
Test CI / test-project (pull_request) Has been cancelled
Test CI / test-project (push) Has been cancelled
2d94426257
fix: when user doesn't have ID new button doesn't displayed
Some checks failed
Test CI / test-flake (push) Successful in 12s
Test CI / test-project (push) Failing after 1m38s
Test CI / test-flake (pull_request) Successful in 11s
Test CI / test-project (pull_request) Failing after 8s
5acadbfbe1
let_rec 2026-05-25 21:00:38 +00:00
let_rec self-assigned this 2026-05-25 21:01:00 +00:00
Some checks failed
Test CI / test-flake (push) Successful in 12s
Test CI / test-project (push) Failing after 1m38s
Test CI / test-flake (pull_request) Successful in 11s
Test CI / test-project (pull_request) Failing after 8s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/handle_response:feat/handle_response
git switch feat/handle_response

Merge

Merge the changes and update on Forgejo.
git switch main
git merge --no-ff feat/handle_response
git switch feat/handle_response
git rebase main
git switch main
git merge --ff-only feat/handle_response
git switch feat/handle_response
git rebase main
git switch main
git merge --no-ff feat/handle_response
git switch main
git merge --squash feat/handle_response
git switch main
git merge --ff-only feat/handle_response
git switch main
git merge feat/handle_response
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
xinux/relago!14
No description provided.