Conversation
…date OpenAPI schema
….json and package-lock.json
UN-2283: get finance type
UN-2278-post-attachment
Update get other costs
… and remove supplier_id
… with validation and supplier management
…e new_supplier_name
…andling in other costs patch
…n other costs patch
Patch other costs
…ne deletion and addition
…ire at least one attachment
…with enhanced validation
…with improved validation and error handling
Other costs accept array
Add presign url get other costs
UN-2273 add reviewerType to GET /campaigns/:cid/bugs response
…ge.json and package-lock.json
… removed after S3 deletion
feat: update attachment deletion logic to ensure database records are…
UN-2274: other costs
Tests difference:New Tests |
This file contains hidden or 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
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.
This pull request introduces several important improvements and new features related to campaign bug reviewer identification, finance attachment uploads, and cost deletion, along with supporting configuration and dependency updates. The main highlights are the addition of reviewer type distinction (AI vs. human) for campaign bugs, new endpoints for finance attachment upload and cost deletion (with S3 cleanup), and configuration enhancements to support these features.
Campaign Bugs: Reviewer Type Distinction
AI_REVIEWER_PROFILE_IDenvironment variable and propagated it through.env.template, deployment scripts, and theconfigobject, allowing the backend to distinguish between AI and human reviewers for bugs. (.env.template[1]deployment/after-install.sh[2]src/config.ts[3] [4]reviewerTypefield ("ai" or "human") for each bug, based on the reviewer profile ID. Includes unit tests to ensure correct behavior. (src/routes/campaigns/campaignId/bugs/_get/index.ts[1] [2] [3] [4];src/routes/campaigns/campaignId/bugs/_get/index.spec.ts[5] [6] [7]Finance Attachments: New Upload Endpoint
.bat,.sh,.exe), checks file size, and uploads valid files to S3. Failed uploads are reported in the response. Comprehensive tests were added. (src/routes/campaigns/campaignId/finance/attachment/_post/index.ts[1]src/routes/campaigns/campaignId/finance/attachment/_post/index.spec.ts[2]Finance Other Costs: Deletion with S3 Cleanup
src/routes/campaigns/campaignId/finance/otherCosts/_delete/index.tssrc/routes/campaigns/campaignId/finance/otherCosts/_delete/index.tsR1-R83)Supporting Improvements
@appquality/tryber-databasedependency to version^0.46.20for improved database interactions. (package.jsonpackage.jsonL24-R24)src/features/s3/presignUrl/index.tssrc/features/s3/presignUrl/index.tsL7-R11)These changes collectively enhance the campaign management API, improving traceability of bug reviews, enabling secure file uploads, and ensuring proper cleanup of campaign-related resources.