TECH_DEBT: Update azure-pipelines.db-schema-creation.yaml - #1241
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe PR adds a Submission job to the Azure Pipelines DB schema creation pipeline. This job installs dotnet-ef, runs migrations for SubmissionContext using configuration from Submission.csproj and Submission.Data.csproj, generates a SQL script (submissionDb.sql), and publishes it as a scripts artifact. The job definition appears duplicated in the pipeline configuration. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
Azure_Pipelines/azure-pipelines.db-schema-creation.yaml(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**
⚙️ CodeRabbit configuration file
**: Pull requests that have "TECH_DEBT" in the title should only contain changes related to typos, unused code, linter/IDE suggestions, swagger specification updates,
and logging improvements. These TECH_DEBT PRs must not affect core functionality. All PRs that are not considered technical debt must include information on what
testing was performed in the description of the PR. If it does not, ask the author to provide details on what testing was performed.
When reviewing code, suggest unit tests using XUnit in the following scenarios:
- If/Else or Switch/Case blocks are introduced or modified — ensure each branch has a corresponding unit test.
- Logic that depends on service or interface configuration — suggest tests to validate different implementations are correctly resolved.
- No network activity (HTTP calls, sockets, etc.) should appear in unit tests. Recommend using mocks (via Moq) for any external communication.
Large unit tests should be avoided; keeping unit tests small and focused on targeted business logic (i.e. string sanitization)
**: Pull requests that have DOCS in the title should only contain changes related to documentation within the /docs folder or in .md files through-out the code-base. The description
of the PR should specify what documentation was updated. Documentation updates should use EventCatalog.dev structure, where service-specific functionality should be described
in the service's index.mdx (i.e. /services/XXX/index.mdx or /domains/XXX/services/YYY/index.mdx). Configurations that are shared by multiple services should be
reflected in the /docs/docs/config files.
Files:
Azure_Pipelines/azure-pipelines.db-schema-creation.yaml
🧠 Learnings (1)
📓 Common learnings
Learnt from: CR
Repo: lantanagroup/link-cloud PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-09-02T16:50:12.997Z
Learning: All non-TECH_DEBT PRs must include information on testing performed in the PR description
Learnt from: seanmcilvenna
Repo: lantanagroup/link-cloud PR: 560
File: docs/service_specs/tenant.md:49-69
Timestamp: 2024-12-04T16:30:56.051Z
Learning: In this project, PRs titled "TECH-DEBT" may include documentation changes, such as restructuring documentation, adding new API operations documentation, and enhancing endpoint descriptions.
Learnt from: CR
Repo: lantanagroup/link-cloud PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-09-02T16:50:12.997Z
Learning: The PR description must follow the provided template with sections: Description of Changes, Testing Performed, Unit Testing checkbox, and Documentation Updated
Learnt from: CR
Repo: lantanagroup/link-cloud PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-09-02T16:50:12.997Z
Learning: TECH_DEBT pull requests must only include typos, unused code removal, linter/IDE suggestions, Swagger specification updates, documentation (e.g., markdown files), and logging improvements
Learnt from: CR
Repo: lantanagroup/link-cloud PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-09-02T16:50:12.997Z
Learning: TECH_DEBT pull requests must not affect core functionality
Learnt from: CR
Repo: lantanagroup/link-cloud PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-09-02T16:50:12.997Z
Learning: All non-TECH_DEBT PRs must reference a JIRA ticket number for the LNK project in the PR summary
Learnt from: seanmcilvenna
Repo: lantanagroup/link-cloud PR: 593
File: docs/service_specs/submission.md:21-21
Timestamp: 2024-12-27T19:53:24.250Z
Learning: The DotNet/Submission project is deprecated and replaced by Java/Submission, and will be removed in a future PR.
Learnt from: edward-miller-lcg
Repo: lantanagroup/link-cloud PR: 1095
File: Tests/BackendE2ETests/ApiRequests/SubmissionZipReader.cs:235-297
Timestamp: 2025-09-10T03:18:32.895Z
Learning: User edward-miller-lcg prefers minimal logging in test scenarios and considers frequent progress updates during polling loops to be "too noisy" for test output.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Analyze (csharp)
- GitHub Check: Analyze (java-kotlin)
🔇 Additional comments (3)
Azure_Pipelines/azure-pipelines.db-schema-creation.yaml (3)
251-270: Complete the PR description before merging.The PR description currently contains only template placeholders with no actual content. Per project guidelines, the description must include:
- Description of Changes — Explain why the Submission job is being added to the schema generation pipeline
- Testing Performed — Detail what testing was done to verify this change
- Documentation Updated section status
Additionally, clarify the apparent conflict with the codebase note that DotNet/Submission is deprecated.
262-262: Paths are correct and intentional.Both csproj files exist and the split is appropriate for Entity Framework migrations:
DotNet/Submission/Submission.csproj(startup project for-s)DotNet/Submission.Data/Submission.Data.csproj(migrations project for-p)The SubmissionContext class is correctly located in the Submission.Data project.
Note: Given that the DotNet/Submission project is deprecated (per previous context), this pipeline step's future relevance should be tracked alongside the deprecation removal timeline.
251-270: Disregard duplication concern—exactly one Submission job exists.Verification confirms the Submission job appears only once in the pipeline (at line 252). No duplication is present in the final state.
Likely an incorrect or invalid review comment.
🛠️ Description of Changes
Update "Generate Database Scripts" pipeline to include a job for the Submission service to generate the submission service database's SQL migration script
🧪 Testing Performed
Ran the pipeline against the branch and it successfully created the submission service's idempotent database SQL script.
🧑🔬 Unit Testing
N/A
📓 Documentation Updated
N/A
Summary by CodeRabbit