Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

feat: add new samples, update linters #324

Merged
merged 1 commit into from
Apr 28, 2020
Merged

feat: add new samples, update linters #324

merged 1 commit into from
Apr 28, 2020

Conversation

sethvargo
Copy link
Contributor

Fills in missing samples and updates existing samples to the new format. This also updates the linter to match newer repos like Secret Manager.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 28, 2020
@sethvargo
Copy link
Contributor Author

Ping @bcoe

@codecov
Copy link

codecov bot commented Apr 28, 2020

Codecov Report

Merging #324 into master will decrease coverage by 28.18%.
The diff coverage is 79.31%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #324       +/-   ##
===========================================
- Coverage   98.37%   70.18%   -28.19%     
===========================================
  Files           3       34       +31     
  Lines        3681     5876     +2195     
  Branches      133       27      -106     
===========================================
+ Hits         3621     4124      +503     
- Misses         59     1752     +1693     
+ Partials        1        0        -1     
Impacted Files Coverage Δ
samples/decryptAsymmetric.js 0.00% <0.00%> (ø)
samples/encryptAsymmetric.js 0.00% <0.00%> (ø)
samples/signAsymmetric.js 0.00% <0.00%> (ø)
samples/verifyAsymmetricEc.js 0.00% <0.00%> (ø)
samples/verifyAsymmetricRsa.js 0.00% <0.00%> (ø)
samples/quickstart.js 98.18% <97.29%> (ø)
samples/getPublicKey.js 98.50% <97.56%> (ø)
samples/createKeyRing.js 98.27% <98.27%> (ø)
samples/createKeyVersion.js 98.30% <98.30%> (ø)
samples/getKeyLabels.js 98.38% <98.38%> (ø)
... and 53 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 049c9e8...8f0daaa. Read the comment docs.

@sethvargo
Copy link
Contributor Author

I'm not really sure how to make the linter happy? It seems to be complaining about the generated TypeScript files.

Copy link
Contributor

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

Samples look great 👌

With regards to the linter updates, this should all be managed automatically by our code generation. Mind coordinating with @alexander-fenster, and figuring out why some of these changes were needed in this PR (since he was the one who migrated this repository to the new version of the gts linter).

.eslintrc.yml Outdated Show resolved Hide resolved
.eslintignore Outdated Show resolved Hide resolved
@sethvargo sethvargo requested a review from bcoe April 28, 2020 19:02
Copy link
Contributor

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

Looks good 👍 I can take over and push the PR that ignores the docs test temporarily, and get this landed.

@bcoe bcoe added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 28, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 28, 2020
@bcoe bcoe added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 28, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 28, 2020
Fills in missing samples and updates existing samples to the new format.
This also updates the linter to match newer repos like Secret Manager.
@bcoe bcoe added kokoro:force-run Add this label to force Kokoro to re-run the tests. cla: yes This human has signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Apr 28, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 28, 2020
@bcoe bcoe merged commit eb1c213 into googleapis:master Apr 28, 2020
@sethvargo sethvargo deleted the sethvargo/kms_samples branch April 28, 2020 23:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants