Skip to content
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

moved the ODS.Dim.All_EMRSites to ODS.Care.All_EMRSites #530

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

DennisGibz
Copy link
Contributor

@DennisGibz DennisGibz commented Dec 20, 2024

Summary by Sourcery

Chores:

  • Move the All_EMRSites table from the ODS.Dim schema to the ODS.Care schema.

Copy link

sourcery-ai bot commented Dec 20, 2024

Reviewer's Guide by Sourcery

This pull request moves the All_EMRSites table from the ODS.Dim schema to the ODS.Care schema. The SDP_Agency column in the All_EMRSites table is also altered to nvarchar(4000).

ER diagram showing the schema change for All_EMRSites table

erDiagram
    ODS_Dim_All_EMRSites ||--o{ ODS_Care_All_EMRSites : "moved to"
    ODS_Dim_All_EMRSites {
        nvarchar SDP_Agency
    }
    ODS_Care_All_EMRSites {
        nvarchar(4000) SDP_Agency
    }
    note for ODS_Dim_All_EMRSites "Old schema location"
    note for ODS_Care_All_EMRSites "New schema location with modified column size"
Loading

File-Level Changes

Change Details Files
Moved the All_EMRSites table from ODS.Dim to ODS.Care.
  • Changed the schema of the All_EMRSites table from ODS.Dim to ODS.Care.
  • Updated the ALTER TABLE statement to reflect the new schema location of the All_EMRSites table
Scripts/NDWH/C&T FACT TABLES/load_FactLatestObs.sql
Altered the SDP_Agency column in the All_EMRSites table to nvarchar(4000).
  • Modified the data type of the SDP_Agency column to nvarchar(4000).
Scripts/NDWH/C&T FACT TABLES/load_FactLatestObs.sql

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @DennisGibz - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Please document the reason for moving the table from ODS.Dim to ODS.Care schema. Schema changes should include justification in the PR description.
  • Have all dependencies (views, stored procedures, etc.) that reference ODS.Dim.All_EMRSites been identified and updated? Please confirm impact analysis has been completed.
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants