Skip to content

feat: mapco-10524 & MAPCO-10792#40

Merged
asafmas-rnd merged 7 commits into
masterfrom
feature/MAPCO-10524_10
Jun 11, 2026
Merged

feat: mapco-10524 & MAPCO-10792#40
asafmas-rnd merged 7 commits into
masterfrom
feature/MAPCO-10524_10

Conversation

@RonIsraeli123

Copy link
Copy Markdown
Collaborator
Question Answer
Bug fix ✔/✖
New feature ✔/✖
Breaking change ✔/✖
Deprecations ✔/✖
Documentation ✔/✖
Tests added ✔/✖
Chore ✔/✖

Related issues: #XXX , #XXX ...
Closes #XXX ...

Further information:

- Replace sync.layers array with sync.layerQueries map
- Layer list derived from layerQueries keys
- buildLayerQuery reads per-layer query; throws on missing so layer skips
- Store raw geography in properties jsonb alongside geom column
- Add LAYER_QUERIES env override; update tests
@RonIsraeli123 RonIsraeli123 force-pushed the feature/MAPCO-10524_10 branch from 23ee345 to f7ed904 Compare June 8, 2026 17:07
Comment thread config/default.json Outdated
Comment thread config/custom-environment-variables.json Outdated
Comment thread src/externalClients/layersClient/layersClient.ts Outdated
Comment thread src/externalClients/layersClient/layersClient.ts Outdated
Comment thread src/externalClients/layersClientModel.ts Outdated
Comment thread tests/integration/scheduler/syncManager.spec.ts Outdated
Replace sync.layerQueries (Record<string, string>) with sync.layers
(LayerConfig[]), where each entry pairs a layer name with its GraphQL query.

- Add LayerConfig type in its own file (src/types/layerConfig.ts)
- buildLayerQuery looks up the query by layer name in the array
- Derive layer names via config.layers.map(l => l.name)
- Map env var LAYERS (json) to sync.layers
- Drop redundant geography blob from stored properties
- Update default config, helm values/example, and tests
@asafmas-rnd asafmas-rnd changed the title Feature/mapco 10524 10 feat: mapco 10524 10 Jun 9, 2026
insertObjects used orIgnore (ON CONFLICT DO NOTHING), so updated source
objects with an existing (layer_name, id) were silently dropped and the
stale row kept. Switch both the batch and per-row paths to orUpdate so
geom and properties are refreshed on conflict; keys and created_at stay.
Add tests asserting insertObjects upserts via orUpdate on the
(layer_name, id) conflict, skips on empty input, and falls back to
per-object upserts (logging and continuing) when a batch or individual
insert throws.
@asafmas-rnd asafmas-rnd changed the title feat: mapco 10524 10 feat: mapco-10524 & MAPCO-10792 Jun 9, 2026
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

🎫 Related Jira Issue: MAPCO-10792

Comment thread tests/unit/dal/layerDataRepository.spec.ts
@asafmas-rnd asafmas-rnd merged commit 1e5bf36 into master Jun 11, 2026
7 checks passed
@asafmas-rnd asafmas-rnd deleted the feature/MAPCO-10524_10 branch June 11, 2026 11:44
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