-
Notifications
You must be signed in to change notification settings - Fork 14
[FEATURE] Feedback system #31
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
Open
SorkoPiko
wants to merge
13
commits into
geode-sdk:main
Choose a base branch
from
SorkoPiko:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8b3b0ef
add feedback
SorkoPiko d3a8b4a
fix docs
SorkoPiko 2bf8d11
feedback v2
SorkoPiko 4f5d50e
remove old coment
SorkoPiko f6955bd
bump api spec
SorkoPiko bbfa273
merge migrations
SorkoPiko 6484a9f
remove redundant db calls
SorkoPiko 40f7295
remove redundant import
SorkoPiko 7bd426c
fix latest
SorkoPiko 35943d2
add delete endpoint
SorkoPiko 4f46629
add zmx's changes
SorkoPiko 84a6534
update api spec
SorkoPiko a7643a5
replace dev_only with filter_user (unfinished)
SorkoPiko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| /target | ||
| *.db | ||
| .env | ||
|
|
||
| .idea/ | ||
| .vscode/settings.json |
30 changes: 30 additions & 0 deletions
30
.sqlx/query-65406a8107f5b918cb90946352ab511848845b04460426bababfca7bc164b1bb.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
.sqlx/query-8357be940f9bf889c74240f31454b0f64fb752167ece74de940c6838283df569.json
This file was deleted.
Oops, something went wrong.
70 changes: 70 additions & 0 deletions
70
.sqlx/query-9b7acc44bb2484b620efd73816879188954aaf9632a417f7ba9362e218fcc021.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| -- Add down migration script here | ||
|
|
||
| DROP TABLE IF EXISTS mod_feedback; | ||
| DROP INDEX IF EXISTS public.idx_mod_feedback_mod_version_id; | ||
| DROP INDEX IF EXISTS public.idx_mod_feedback_reviewer_id; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| -- Add up migration script here | ||
|
|
||
| CREATE TABLE mod_feedback | ||
| ( | ||
| id SERIAL PRIMARY KEY NOT NULL, | ||
| mod_version_id INTEGER NOT NULL, | ||
| reviewer_id INTEGER NOT NULL, | ||
| positive BOOLEAN NOT NULL, | ||
| feedback TEXT COLLATE pg_catalog."default" NOT NULL DEFAULT 'No feedback provided.'::text, | ||
| decision BOOLEAN NOT NULL DEFAULT false, | ||
|
qimiko marked this conversation as resolved.
|
||
| CONSTRAINT mod_feedback_mod_id_reviewer_id_key UNIQUE (mod_version_id, reviewer_id), | ||
| CONSTRAINT mod_feedback_mod_version_id_fkey FOREIGN KEY (mod_version_id) | ||
| REFERENCES public.mod_versions (id) | ||
| ON DELETE CASCADE, | ||
| CONSTRAINT mod_feedback_reviewer_id_fkey FOREIGN KEY (reviewer_id) | ||
| REFERENCES public.developers (id) | ||
| ON DELETE CASCADE | ||
| ); | ||
|
SorkoPiko marked this conversation as resolved.
|
||
|
|
||
| CREATE INDEX idx_mod_feedback_mod_version_id | ||
| ON public.mod_feedback (mod_version_id); | ||
|
|
||
| CREATE INDEX idx_mod_feedback_reviewer_id | ||
| ON public.mod_feedback (reviewer_id); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| -- Add down migration script here | ||
|
|
||
| DROP TYPE feedback_type; | ||
|
|
||
| ALTER TABLE mod_feedback | ||
| ADD COLUMN positive BOOLEAN NOT NULL, | ||
| DROP COLUMN type; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| -- Add up migration script here | ||
|
|
||
| CREATE TYPE feedback_type AS ENUM | ||
|
SorkoPiko marked this conversation as resolved.
Outdated
|
||
| ('Positive', 'Negative', 'Suggestion', 'Note'); | ||
|
|
||
| ALTER TABLE mod_feedback | ||
| DROP COLUMN positive, | ||
| ADD COLUMN type feedback_type NOT NULL; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,4 @@ pub mod mod_versions; | |
| pub mod mods; | ||
| pub mod tags; | ||
| pub mod stats; | ||
| pub(crate) mod mod_feedback; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.