-
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 - 3rd milestone #1996
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_features
* File `global-common.interface.ts` has been renamed to `global-common.ts`. * Renamed and moved EnvironmentVariableMissingError class. * Renamed and moved Pageable classes to utils directory. * Remove unused import in exchange-oracle.gateway.spec.ts * Remove console.log from fetchAssignedJobs method. * Update dependencies in package.json. * Update terminology in README.md * Remove unused Headers import from job-assignment.controller.ts * Removed OnModuleInit import from kv-store-gateway.service.ts * Corrected the data types for REDIS_PORT and REDIS_HOST in .env.example file. * Remove redundant volume configuration in Docker-compose * Add RPC_URL environment variable to docker-compose * Replace hardcoded URL_KEY in KvStoreGateway with imported constant. * fix: Update KVStoreClient import and test in KvStoreGateway * Add Reputation Oracle address to .env and refactor Oracle Discovery. * Add token authentication for Oracle statistics. * Remove manual environment variable check. * Refactor address to use escrowAddress in job assignment service. * Ensure environment variables validation takes place before module loading. * Revert "Add token authentication for Oracle statistics." * Update terminology from 'Interfaces' to 'Model' in README * Refactor PageableClasses to PageableDto and the file renamed from pageable-classes.ts to pageable.model.ts * Update KV store gateway test to use actual SDK. * Added REPUTATION_ORACLE_ADDRESS in app configuration and docker compose file. * Integrate and use EscrowUtils for job assignment processing. * Added chainId parameter to `getExchangeOracleAddressByEscrowAddress` method. * Remove redundant code KV-store gateway test * Update EscrowUtilsGateway tests. * Add mock ConfigService to oracle-discovery service test. * Revert "Add mock ConfigService to oracle-discovery service test." This reverts commit a2134ad. * Update oracle-discovery.service.spec.ts tests.
* The KVStoreKeys.url constant is now directly called. * Changed Redis data volume path and updated gitignore. * Refactor oracle discovery and statistics modules. * Add CHAIN_IDS_ENABLED to .env.example
Fix typo in oracle-discovery.service file name and references
…rd_milestone_features # Conflicts: # packages/apps/human-app/server/src/app.module.ts # yarn.lock
…perator modules. (#64) * Fixes after check * Removes unnecessary comment * Fixes SDK limitation * Removes unnecessary interceptor, changes Body to Query in request for oracle discovery * Adds statistics related DTO interfaces with api mapping * Changes in interface naming convention of received data * Review fixes * Review fixes * Review fixes * Review fixes * Changes logic of calling exchange oracle: url is obtained based on the address provided in the enpoint. Adds CORS * Adds test coverage * Adds test coverage * Adds kv store to the modules that use it * minor fixes * minor fixes * Alignment of the swagger and interface used in the project * Add email verification endpoints and related logic. * Implement password reset functionality. * Add disableOperator and prepareSignature methods. * A property has been set in the eslint config to avoid enforcing a line break style. * Implement KYC procedure start. * Integration with the KYC procedure, password reset and disable operator modules. * The variable name 'restorePasswordDto' in the sendRestorePassword function has been changed to 'restorePasswordData'. * Update 'type' field data type in PrepareSignature model. * Refactor prepareSignature test and update response fixture. * Refactor service injections in multiple controllers, renamed to a generic 'service' format. * Refactor services to use 'gateway' instead of 'reputationOracleService'. * Sets base paths in the controllers and simplify the path of each endpoint. * Refactor email verification test fixtures. * Refactor 'h_captcha_token'. * Enhance test coverage for oracle gateway. * bug fixed * Remove hCaptcha token mapping in user-worker and password-reset mappers. * Refactor code to separate PrepareSignature functionality into its own module. (#71) * fix: Change naming conventions in password-reset mapper. * Merge conflict fixes --------- Co-authored-by: maciek.nabialek <[email protected]>
@MWBlocky is attempting to deploy a commit to the HUMAN Protocol Team on Vercel. A member of the Team first needs to authorize it. |
portuu3
requested changes
May 14, 2024
packages/apps/human-app/server/src/common/config/gateway-config.service.mock.ts
Outdated
Show resolved
Hide resolved
packages/apps/human-app/server/src/common/config/gateway-config.service.ts
Outdated
Show resolved
Hide resolved
packages/apps/human-app/server/src/modules/kyc-procedure/kyc-procedure.controller.ts
Outdated
Show resolved
Hide resolved
* Implement token authentication in KYC procedure start. * Update endpoint in gateway config and add new signature types. * Fixed tests. * Remove 'CERTIFICATE_AUTHENTICATION' from global-common enums.
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 5 Ignored Deployments
|
portuu3
requested changes
May 16, 2024
packages/apps/human-app/server/src/modules/prepare-signature/prepare-signature.controller.ts
Outdated
Show resolved
Hide resolved
packages/apps/human-app/server/src/modules/prepare-signature/prepare-signature.controller.ts
Outdated
Show resolved
Hide resolved
portuu3
approved these changes
May 16, 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
This PR adds the code from 3rd milestone for Human App backend-for-frontend
Summary of changes
How test the changes
There are unit tests for all the features. To run them please execute
yarn test