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

Improve auto-publish usability #795

Merged
merged 1 commit into from
Aug 3, 2023
Merged

Conversation

nyurik
Copy link
Member

@nyurik nyurik commented Aug 3, 2023

  • on --save-config, only save configured auto_publish settings
  • alias from_schemas as from_schema
  • add integration testing for auto_publish
  • if integration test DB preloading fails, try to clean up the test DB
  • A few more info traces

This change should benefit testing of the #790 cc: @Binabh

* on `--save-config`, only save configured `auto_publish` settings
* alias `from_schemas` as `from_schema`
* add integration testing for `auto_publish`
* if integration test DB preloading fails, try to clean up the test DB
* A few more info traces
Comment on lines +11 to +19
-- INSERT INTO autodetect.auto_table
-- SELECT generate_series(1, 3) as id,
-- (random() * 100000)::int as feat_id,
-- (ST_DUMP(ST_GENERATEPOINTS(st_transform(st_tileenvelope(18, 235085, 122323), 4326), 3))).geom;
-- INSERT INTO autodetect.auto_table
-- SELECT generate_series(4, 30) as id,
-- (random() * 100000)::int as feat_id,
-- (ST_DUMP(ST_GENERATEPOINTS(st_transform(st_tileenvelope(0, 0, 0), 4326), 27))).geom;

Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Is this comment still needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, all other tests include the code how they were initially generated. Makes it easier to regen if needed, plus it documents ranges

@nyurik nyurik merged commit 405d4b2 into maplibre:main Aug 3, 2023
16 checks passed
@nyurik nyurik deleted the auto-cleanup branch August 3, 2023 21:51
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