-
Notifications
You must be signed in to change notification settings - Fork 33
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
Human APP backend - 4th milestone #2170
Merged
Merged
Conversation
This file contains 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
Error handling - exception filters
Endpoint to fetch jobs discovery
Endpoint to assign a job to user and to retrieve assigned jobs
Middleware to pass the auth token
fix: unit tests
Oracles-discovery
# Statistics exchange oracle
* Alignment of naming convention and endpoint structure * Alignment of naming convention and endpoint structure * ExchangeOracleApi->ExchangeOracle * externalApiGateway-> gateway * Coverage improvement
CI/CD workflow
… oracle discovery
…xchange-oracle' into fixes-after-testing-with-stage-exchange-oracle
…-exchange-oracle # Conflicts: # yarn.lock
…e address provided in the enpoint. Adds CORS
# Conflicts: # yarn.lock
Human mainrepo update
* Milestone 4 - draft: TODO * User stats endpoint, test and possible rework of response mapping * Add unit tests * Add proxy endpoints for: - user/register-address - auth/signin/web3 * Adds test coverage, minor fixes * Adds additional proxies for 4 milestone * Reworks reputation oracle gateway test suite, adds necessary mappings * adds missing await * Review fixes * Adds /user/register-address handling * Changes endpoint name * Adds import fixes * Adds controller and module to the main app module * Updates README.md (#125) * Updates README.md: Adds Caching section, Changes in signature type * README.md updates * README.md updates * fix(app/user/worker): remove chain id validation (#114) * fix(app/user/worker): remove chain id validation * Test fix and JWT User data align * Updates README.md: Adds Caching section, Changes in signature type * Removes commented code * Changes after hcaptcha api check * Adds interceptor for axios requests * Fix/signature (#126) * Updates README.md (#125) * Updates README.md: Adds Caching section, Changes in signature type * README.md updates * README.md updates * fix(app/worker): add signature field to req body * update(app): revert readme * fix(app/register-address): fix test --------- Co-authored-by: macnablocky <[email protected]> Co-authored-by: Kacper Koza <[email protected]> * Fixes undefined in POST data, fixes unit tests * Adds Resign job feature, small changes in the gateway config (#134) * Fixes * Fixes in dependencies --------- Co-authored-by: Kacper Koza <[email protected]> Co-authored-by: maciej.nabialek <[email protected]> Co-authored-by: macnablocky <[email protected]> * Fixes restore password * Fixes restore password part 2. * review fixes --------- Co-authored-by: KacperKoza343 <[email protected]> Co-authored-by: Kacper Koza <[email protected]> Co-authored-by: Bartosz Solka <[email protected]>
@macnablocky is attempting to deploy a commit to the HUMAN Protocol Team on Vercel. A member of the Team first needs to authorize it. |
…elop # Conflicts: # packages/apps/human-app/server/package.json # yarn.lock
Co-authored-by: = <[email protected]>
* Update endpoint paths in `reputation-oracle.gateway.spec.ts`. * Add TokenRefresh feature in reputation oracle integration
portuu3
requested changes
Jun 24, 2024
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.
Rebase to develop branch.
Not tested yet
packages/apps/human-app/server/src/common/config/gateway-config.service.ts
Outdated
Show resolved
Hide resolved
packages/apps/human-app/server/src/common/interceptors/axios-request.interceptor.ts
Outdated
Show resolved
Hide resolved
packages/apps/human-app/server/src/common/interfaces/endpoint.interface.ts
Outdated
Show resolved
Hide resolved
packages/apps/human-app/server/src/common/interfaces/jwt-token.model.ts
Outdated
Show resolved
Hide resolved
packages/apps/human-app/server/src/modules/statistics/statistics.service.ts
Outdated
Show resolved
Hide resolved
packages/apps/human-app/server/src/modules/statistics/statistics.service.ts
Show resolved
Hide resolved
packages/apps/human-app/server/src/integrations/exchange-oracle/exchange-oracle.gateway.ts
Show resolved
Hide resolved
...es/apps/human-app/server/src/integrations/h-captcha-labeling/h-captcha-statistics.gateway.ts
Outdated
Show resolved
Hide resolved
packages/apps/human-app/server/src/modules/h-captcha/h-captcha.service.ts
Outdated
Show resolved
Hide resolved
* Fixes after client review * Fixes after client review * Fixes after client review * Fixes failing test * small fix in displaying axios interceptor logs * Adds filtering to oracle discovery (#154) * Adds filtering to oracle discovery * Adds and passes tests for controller, adds mapper * Adds and passes tests for service * Rework of oracle-discovery.service.ts in alignment with code review remark
…ll return original data) (#159)
This reverts commit 68953ae.
* Fixes in validators, fixes in parsing Oracle Discovery DTO * Removes TransformToArray from decorator list, * Rollbacks yarn lock in dashboard admin * Changes to improve swagger readablity
* Adds optional validator to jobsDiscoveryParamsDto.sort_field * Adds optional validator to jobsDiscoveryParamsDto.job_type
* HAM-2 * HAM-6 * HAM-3 * HAM-3 part 2 * HAM-9 * HAM-1 * HAM-5 * HAM-1 rework * Fix to HAM-9 * Fix to HAM-6
* HAM-16/30/31/32
* fix(app/worker/jobs): fix resign job dto * Fixes ut --------- Co-authored-by: KacperKoza343 <[email protected]>
* Changes assignment id back from number to string * Update job-assignment.model.ts
* feat(app/worker/password): add hcaptcha field * Fixes endpoint model for forgot password, adds h-captcha token to email verification resend endpoint model * Adds proper handling of ttl and changes address to wallet_address in JWT token decoding * Adds proper handling of ttl and changes address to wallet_address in JWT token decoding * small fix * small fix * Adds cache reset on demand --------- Co-authored-by: KacperKoza343 <[email protected]>
* Jobs discovery should return only ACTIVE jobs * Removes unnecessary filtering, adds type guarding of responses from reputation and exchange oracle gateways
portuu3
approved these changes
Jul 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Adds 4th milestone related features:
H-Captcha labeling enpoints:
H-Captcha labeling gateway
Proxy enpoints in reputation oracle:
Improves coverage
Adds necessary mappings for reputation oracle gateway
Adds authorization in KYC procedure start
Summary of changes
How test the changes
There are unit tests for all the features. To run them please execute
yarn test