Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Human APP backend - 3rd milestone (humanprotocol#1996)
* Merge pull request #17 from blockydevs/error_handling Error handling - exception filters * Merge pull request #15 from blockydevs/10-jobs-discovery Endpoint to fetch jobs discovery * Merge pull request #16 from blockydevs/11-job-assignment Endpoint to assign a job to user and to retrieve assigned jobs * Merge pull request #18 from blockydevs/authorization-token-handling Middleware to pass the auth token * Merge pull request #21 from blockydevs/unit_tests_fix fix: unit tests * Merge pull request #14 from blockydevs/#13-Oracles-discovery Oracles-discovery * Merge pull request #20 from blockydevs/#Statistics-Exchange-oracle # Statistics exchange oracle * Naming covention alignemnt (#27) * Alignment of naming convention and endpoint structure * Alignment of naming convention and endpoint structure * ExchangeOracleApi->ExchangeOracle * externalApiGateway-> gateway * Coverage improvement * CI/CD workflow * fix(unit tests): Remove validationSchema from ConfigModule * 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 * Alignment after testing with stage exchange oracle (#29) * 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 * Minor fixes * Minor fixes * Minor fixes * Minor fixes * Removes todo * Review fixes * Review fixes * Review fixes * Review fixes * Add email verification endpoints and related logic. * name: human-app -> human-app-server in package.json (#63) * 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. * Fixes after code review (2024-05-07) (#75) * 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. * Fixes CR 2024-05-10 (#78) * 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. * Merge conflict fixes * Adds Email Confirmation, KYC procedure, Password Reset and Disable Operator 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 <maciej.nabialek@blockydevs.com> * Fixes CR 2024-05-15 (#88) * 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. * Fixed reputation-oracle.gateway.spec.ts (#90) * Removes authorisation from prepare-signature endpoint (#92) --------- Co-authored-by: MWBlocky <137490000+MWBlocky@users.noreply.github.com> Co-authored-by: macnablocky <143715306+macnablocky@users.noreply.github.com> Co-authored-by: MWBlocky <michal.walczak@blockydevs.com> Co-authored-by: maciek.nabialek <maciej.nabialek@blockydevs.com>
- Loading branch information