Skip to content

Commit

Permalink
[feedback-pipeline-1] refactored the feedback system to be flatter st…
Browse files Browse the repository at this point in the history
…ructured (#502)

* refactored the feedback system to be flatter structured

* [feedback-pipeline-2]  API Change (#503)

* changed the feedback api (renaming `delete_issue_requested` to `deletion_requested`)
* [feedback-pipeline-3] removed `structopt` for parsing commandline arguments (#504)

* removed structopt for parsing commandline arguments
* documented the used environment variables in the README

* refactored token management to be fully based in the tokens module

* formatting fix
  • Loading branch information
CommanderStorm committed Apr 12, 2023
1 parent 0d2c716 commit 07b0895
Show file tree
Hide file tree
Showing 11 changed files with 220 additions and 386 deletions.
4 changes: 2 additions & 2 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1862,7 +1862,7 @@ components:
For inspiration on how to do this, see our website.
type: boolean
example: true
delete_issue_requested:
deletion_requested:
description: |
Whether the user has requested to delete the issue.
If the user has requested to delete the issue, we will delete it from GitHub after processing it
Expand All @@ -1875,7 +1875,7 @@ components:
- subject
- body
- privacy_checked
- delete_issue_requested
- deletion_requested
tags:
- name: core
description: the API to access/search for room information
Expand Down
131 changes: 1 addition & 130 deletions server/feedback/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion server/feedback/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ serde_json = "1.0.95"
actix-cors = "0.6.4"
tokio = { version = "1.27.0", features = ["full"] }
rand = "0.8.5"
structopt = "0.3.26"
env_logger = "0.10.0"
jsonwebtoken = "8.3.0"
chrono = "0.4.23"
Expand Down
7 changes: 7 additions & 0 deletions server/feedback/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ Please follow the [system dependencys docs](/resources/documentation/Dependencys

### Starting the server

The following environment variables are required for all features to work:

| variable | usage/description |
|----------------|----------------------------------------------------------------------------------------------------|
| `GITHUB_TOKEN` | A GitHub token with `write` access to `repo`. This is used to create issues/PRs on the repository. |
| `JWT_KEY` | A key used to sign JWTs. This is used to authenticate that feedback tokens were given out by us. |

Run `cargo run` to start the server.
The server should now be available on `localhost:8070`.

Expand Down
124 changes: 0 additions & 124 deletions server/feedback/src/core/mod.rs

This file was deleted.

Loading

0 comments on commit 07b0895

Please sign in to comment.