Skip to content
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

feat: Stop sending cliToken in sendSubmission mutation #51

Conversation

flacial
Copy link
Member

@flacial flacial commented Jul 9, 2022

Closes #38

Merging this PR will stop the sendSubmission mutation from sending the cliToken. When most of the users upgraded their CLI, its field type will be completely removed.

@codecov
Copy link

codecov bot commented Jul 9, 2022

Codecov Report

Merging #51 (44c6d4a) into master (f6639c4) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #51   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           13        13           
  Lines          203       216   +13     
  Branches        20        22    +2     
=========================================
+ Hits           203       216   +13     
Impacted Files Coverage Δ
src/graphql.ts 100.00% <ø> (ø)
src/util/request.ts 100.00% <100.00%> (ø)
src/cli.ts 100.00% <0.00%> (ø)
src/commands/login.ts 100.00% <0.00%> (ø)
src/commands/logout.ts 100.00% <0.00%> (ø)
src/commands/submit.ts 100.00% <0.00%> (ø)
src/util/credentials.ts 100.00% <0.00%> (ø)

src/graphql.ts Outdated
@@ -28,7 +28,7 @@ export const POST_SUBMISSION = `
mutation createSubmission(
$lessonId: Int!
$challengeId: Int!
$cliToken: String!
$cliToken: String
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we just remove this since we are not sending it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and also remove line 37?

@flacial flacial requested a review from songz July 10, 2022 09:36
@flacial flacial changed the title feat: Stop sending clitoken in sendSubmission mutation feat: Stop sending cliToken in sendSubmission mutation Jul 10, 2022
@flacial flacial merged commit 8e659e0 into garageScript:master Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stop sending cliToken in submission body.
2 participants