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

Aperture SDK for Javascript #817

Merged
merged 12 commits into from
Nov 7, 2022
Merged

Aperture SDK for Javascript #817

merged 12 commits into from
Nov 7, 2022

Conversation

DariaKunoichi
Copy link
Contributor

@DariaKunoichi DariaKunoichi commented Oct 25, 2022

Description of change

Checklist
  • Tested in playground or other setup

This change is Reviewable

Copy link
Contributor

@hasit hasit left a comment

Choose a reason for hiding this comment

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

A few general comments:

  1. Do not copy over the flowcontrol.proto file. Check how we are generating the stubs here, and copying them over using the script here
  2. You will have to expose additional endpoints from the example server. Refer to aperture-go's example for reference.
  3. Refer to aperture-go's Dockerfile to correctly expose the example service along with a healthcheck for the validator to run against it

@codecov
Copy link

codecov bot commented Nov 3, 2022

Codecov Report

Base: 37.54% // Head: 3.30% // Decreases project coverage by -34.23% ⚠️

Coverage data is based on head (0ab477d) compared to base (2bbfe8d).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #817       +/-   ##
==========================================
- Coverage   37.54%   3.30%   -34.24%     
==========================================
  Files         286     286               
  Lines       20852   20852               
==========================================
- Hits         7828     689     -7139     
- Misses      12541   20095     +7554     
+ Partials      483      68      -415     
Impacted Files Coverage Δ
pkg/status/provide.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/notifiers/event.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/etcd/notifier/key.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/platform/readiness.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/config/unmarshaller.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/etcd/notifier/prefix.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/policies/paths/paths.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/notifiers/basic-notifier.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/multimatcher/multimatcher.go 0.00% <0.00%> (-100.00%) ⬇️
operator/controllers/mutate_func.go 0.00% <0.00%> (-100.00%) ⬇️
... and 162 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@kklimonda-fn kklimonda-fn left a comment

Choose a reason for hiding this comment

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

Reviewed 11 of 20 files at r1, 3 of 6 files at r2, 7 of 7 files at r3, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @DariaKunoichi)


.circleci/continue-workflows.yml line 641 at r3 (raw file):

          remote-repo-fingerprint: "c5:d8:c4:22:7e:ff:b5:c3:c3:32:c2:b7:54:c7:99:1b"

  aperture-js:

Are we doing releases for that SDK? If so, you need to add it to .circleci/post-release.yaml


sdks/aperture-js/LICENSE.txt line 1 at r3 (raw file):

MIT License

Is this a correct license, or should that be Apache?

Copy link
Contributor

@jmichalak-fluxninja jmichalak-fluxninja left a comment

Choose a reason for hiding this comment

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

LGTM, but maybe someone from @fluxninja/product-engineering should take a look.

this.span.setAttribute(CHECK_RESPONSE_LABEL, JSON.stringify(this.checkResponse));
this.span.setAttribute(FLOW_END_TIMESTAMP_LABEL, Date.now());

let attr = this.span.attributes;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: is this line needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

leftover from debugging, thanks!

DariaKunoichi and others added 9 commits November 7, 2022 15:12
### Description of change
- Move routes to example folder
- Run example server on port 8080
- Fix typos

##### Checklist

- [ ] Tested in playground or other setup
- [ ] Documentation is changed or added
- [ ] Tests and/or benchmarks are included
- [ ] Breaking changes

<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg"
height="34" align="absmiddle"
alt="Reviewable"/>](https://reviewable.io/reviews/fluxninja/aperture/853)
<!-- Reviewable:end -->
Copy link
Contributor Author

@DariaKunoichi DariaKunoichi left a comment

Choose a reason for hiding this comment

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

Reviewable status: 8 of 32 files reviewed, 3 unresolved discussions (waiting on @DariaKunoichi, @jmichalak-fluxninja, and @kklimonda-fn)


.circleci/continue-workflows.yml line 641 at r3 (raw file):

Previously, kklimonda-fn (Krzysztof Klimonda) wrote…

Are we doing releases for that SDK? If so, you need to add it to .circleci/post-release.yaml

We should release this to npm - I would need help from frontend team so it won't be done in this PR.


sdks/aperture-js/LICENSE.txt line 1 at r3 (raw file):

Previously, kklimonda-fn (Krzysztof Klimonda) wrote…

Is this a correct license, or should that be Apache?

I copied this from aperture-go so probably yes?

Copy link
Contributor

@kklimonda-fn kklimonda-fn left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 12 files at r4, 1 of 16 files at r7, all commit messages.
Reviewable status: 10 of 32 files reviewed, 1 unresolved discussion (waiting on @DariaKunoichi and @jmichalak-fluxninja)

@DariaKunoichi DariaKunoichi merged commit 77530f0 into main Nov 7, 2022
@DariaKunoichi DariaKunoichi deleted the nodejs_sdk branch January 12, 2023 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants