Repository navigation
PostgreSQL_End_to_End: the complete example of the "FundsXML in production" films - #39
Merged
Merged
Conversation
… production" films One folder with everything the films "FundsXML in a database", "Loading FundsXML files" and "Generating FundsXML" show: - ddl/: table model in which every repeating FundsXML node is a row (funds, umbrellas and subfunds, several NAV natures and currencies per day, portfolios, positions and look-through, flows, distributions, trades, income, documents linked or embedded, EMT/EET/TPT as XML plus key fields), versioned by delivery, views for users, row-level security, code lists from the XSD - loader/load.py: check, validate (XSD 1.1), register, stream, link, codes, reconcile, release; landing folder with a report for every rejected file - generator/export.py: one streamed file per partner from a partner register, AMEND corrections, mapping table - data/: six deliveries (four funds in one file, daily estimated and official NAVs, documents, AMEND, DELETE), four bad files, golden export files - run_all.sh, run in a new CI job against PostgreSQL 16 basic_checks.sch now handles repeating TotalAssetValues (several dates and natures), subfunds and several portfolios of the same date; it used to fail on a file with more than one NAV. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s own UniqueIDs The UniqueIDs of the sample deliveries are now fund code + number (GE_0001), so they visibly differ from the database keys the generator writes (A346). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
A new folder
PostgreSQL_End_to_End/with everything the production films build on (download as a whole):ddl/01…09): every repeating node of FundsXML is a row: several funds per file, umbrella and subfunds, several NAV natures and currencies per day, many NAV dates, portfolios with positions and look-through, share-class flows and distributions, trades and income, documents (linked or embedded), EMT/EET/TPT as XML plus key fields. Versioned by delivery (AMEND/DELETE), views for users, row-level security, code lists from the XSD.loader/load.py): check → validate (XSD 1.1) → register → stream → link → codes → reconcile → release, landing folder with a report per rejected file.generator/export.py): one streamed file per partner frompartners.json, AMEND corrections,MAPPING.md.XMPLidentifiers), generated bydata/make_samples.pyfrom the realistic samples.postgres-end-to-endrunsrun_all.shagainst PostgreSQL 16 (load, reject, skip, correct, delete, reconcile, query, export, XSD 1.1, golden compare, round trip), checks that the samples are reproducible and that Schematron finds no errors.basic_checks.sch: the NAV rules now compare per date and nature, and accept subfunds and several portfolios of the same date (they failed with an XPath type error on files with more than one NAV). Existing samples: unchanged results; the negative fixture still fails.🤖 Generated with Claude Code