-
Notifications
You must be signed in to change notification settings - Fork 660
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
[ChaosCenter]: Migrating graphql-server from Gorilla mux to Gin (#3923) #3923
Conversation
0df3e8c
to
44ca043
Compare
Signed-off-by: Namkyu Park <lak9348@gmail.com> Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr>
There seems to be some linting and import order issues, can you run a gofmt in your change files! |
Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr>
I fixed all @S-ayanide ! |
…ux-to-gin Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr>
Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr>
Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix requested codeql issues in your PR
…schaos#3933) * fix: Move to using interface for better mocking at chaoshub Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * fix: delete operator interface and linting codes Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * fix: change db instance to local variable Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * fix: passing operator interface for better mocking Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> --------- Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr>
Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr>
Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr>
Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr>
Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr>
9145dad
to
9b8b5cb
Compare
Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr>
Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr>
25890b4
to
04842e5
Compare
…ux-to-gin Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr>
Hey @imrajdas, As a temporary measure, I wrote code to remove "../" , "..", etc. if they were added to the data by the API requestor. |
Ok, we can take it in other PR. |
@amityt - please do a final review before the merge |
@@ -6,11 +6,12 @@ require ( | |||
github.com/99designs/gqlgen v0.11.3 | |||
github.com/argoproj/argo-workflows/v3 v3.3.1 | |||
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32 | |||
github.com/gin-contrib/cors v1.3.1 | |||
github.com/gin-gonic/gin v1.7.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.7.7 is released in 2021. Can we use the latest one? If no major code change is required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@imrajdas let's take it in a different PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.9.0 is the latest version.
But higher than 1.7.7, We need to upgrade the version of Go 1.17.
So I just use that version like the authentication server in litmusChaos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, lets do it in other PR
Proposed changes
Migrate from Gorilla Mux to Gin because of two main reasons.
Issue No. #3919
Types of changes
What types of changes does your code introduce to Litmus? Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Dependency
Special notes for your reviewer: @S-ayanide @amityt