1. Core Detail Views
Updated views
busopp_core_details.sqlemployee_core_details.sqlproject_core_details.sql
Change
- Updated base generation logic so that all
LINK_KEYs inOBJECT_METADATAare explicitlyCASTasTEXT.
Impact / Rationale
- Ensures consistent typing of linkage keys across CDM views.
- Reduces risk of mismatched joins and type conflicts where metadata is consumed downstream.
2. Project Meta Values Views
Updated views
project_meta_values_contingency.sqlproject_meta_values_expenses.sqlproject_meta_values_forecast.sqlproject_meta_values_hours.sqlproject_meta_values_revenue.sqlproject_meta_values_time.sql
Changes / Notes
- Legacy change where field
COMPANYhas been renamed toCOMPNY_ID. - These are recognised as legacy CDM views, even though they were only created in Apr-25.
- There is an open design decision on whether these views should:
- Continue to exist as CDM meta value views; or
- Be replaced by
item_values_##views and assembled “in report”.
Risks / Considerations
- Currency handling and conversions remain a known issue and will need to be addressed at some level (either in CDM or in reporting logic).
- Decision required: where should the burden of value assembly and currency handling sit (warehouse vs. report layer)?
3. Meta Codes Views
Updated views
project_meta_codes.sqlbusopp_meta_codes.sqlbusopp_meta_codes_archive.sqlproject_meta_codes_archive.sql
Changes
- Rationalised multiple Programme/Program ID concepts into three distinct categories:
- BUSINESS
- REPORTING
- DELIVERY
- Confirmed direction that all code values should have a description for small lookup sets.
Impact / Rationale
- Reduces ambiguity around programme identifiers and improves consistency of usage.
- Enforces better usability of lookups in reports and downstream applications by ensuring descriptions are always available.
4. Feedback Meta Satisfaction View
View
feedback_meta_satisfaction.sql
Changes / Notes
- This is a composite
UNIONview. - Historically saved as a
CREATE VIEWstatement, which conflicts with the currentmvwmaterialised-view process. - Composite views remain a future pattern, but this one may need to be forked/isolated for now to avoid interference with the
mvwprocess.
Action
- Treat as an exception until a standard composite-view pattern is agreed.
5. Infrastructure OSH Records
View
infrastructure_oshrecords.sql
Changes / Notes
- This view contains a very long comment field.
- Currently, there is no robust solution for handling comments where JSON does not terminate cleanly.
- For now, JSON warnings have been disabled for this view, and it should be treated as reference text only, not as structurally reliable JSON.
Impact
- View is suitable for human reference but should not be used as a stable JSON source for automation or transformations.
6. Base Architecture / get.myview Adoption
Updated views
global_management_accs.sqlfinance_codeb.sqlproject_value.sqlemployee_details.sqlemployee_details_plus.sqlemployee_details_plus_202409.sqlemployee_headcount.sqlemployee_hours.sqlemployee_hours_202409.sqlproject_customerinvoice.sqlproject_customerorderline.sqlproject_time_202407.sqlproject_value_CAD.sqlproject_purchaseorderline_202407.sqlproject_roleassignment_202407.sql
Change
- All listed views have been wrapped using the standard
__myviewCTE pattern and updated to use the modernget.myviewstructure (“top and tail” refactor).
Impact / Rationale
- Aligns legacy/early views with the current CDM architectural standard.
- Simplifies maintenance and makes behaviour more predictable across the view estate.
7. General Ledger Views – Pipeline Date Support
Updated views
generalledger_balance.sqlgeneralledger_balanceset.sqlgeneralledger_details.sqlgeneralledger_periodbudget.sqlgeneralledger_projectbalance.sqlgeneralledger_transaction.sqlledger_item.sql
Change
- Inserted pipeline date support (commented as
-- pipeline dates) to enable date insertion during pipeline execution.
Impact / Rationale
- Provides better traceability and control for incremental loads and pipeline runs.
- Enables more robust auditing and potential backfill/rollback strategies based on pipeline dates.