Skip to content

Async Submit#39

Open
luccasmmg wants to merge 10 commits into
2.11from
nhs-async-submit
Open

Async Submit#39
luccasmmg wants to merge 10 commits into
2.11from
nhs-async-submit

Conversation

@luccasmmg

Copy link
Copy Markdown
Member

This PR essentially moves the logic for the datapusher_submit action into a CKAN Job

@coderabbitai

coderabbitai Bot commented Aug 1, 2025

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8cc4c83c-d192-44dc-bd8a-386a04be8487

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch nhs-async-submit

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

luccasmmg and others added 5 commits August 12, 2025 11:17
Adds CSV sampling at resource submission time to detect any numeric
field whose values exceed JavaScript MAX_SAFE_INTEGER (9,007,199,254,740,991).
Affected fields are silently rounded in the browser causing wrong filter
suggestions in the Data Explorer.

- _sample_csv_for_precision_risk(): streams first 100 rows of uploaded CSV,
  checks every number/integer/float schema field for large values regardless
  of column name (Option B — no keyword filtering)
- aircan_submit(): calls the helper synchronously before the Airflow job is
  queued; flashes a notice to the editor and stores precision_warning on the
  resource extras via the model (bypassing hooks to avoid infinite loop);
  clears the flag automatically on clean re-ingest
- plugin.py: reverts before_resource_create approach; keeps except block clean
- 16 unit tests covering helper logic, boundary values and aircan_submit integration

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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.

2 participants