agrc / palletjack

A library for updating AGOL data from various external sources
https://agrc.github.io/palletjack/palletjack/
MIT License
12 stars 0 forks source link

Feat: Upsert existing feature services #15

Closed jacobdadams closed 2 years ago

jacobdadams commented 2 years ago

The hits keep on coming. This modifies the existing FeatureServiceInlineUpdater and adds the ability to update an existing feature layer and add new features in a single op (does not delete features, however).

It also refactors a bunch of reusable helper methods into a utils module.

codecov[bot] commented 2 years ago

Codecov Report

Merging #15 (6d498b1) into main (e05076c) will increase coverage by 0.60%. The diff coverage is 94.44%.

:exclamation: Current head 6d498b1 differs from pull request most recent head cb49c7b. Consider uploading reports for the commit cb49c7b to get more accurate results

@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
+ Coverage   86.49%   87.09%   +0.60%     
==========================================
  Files           4        5       +1     
  Lines         496      527      +31     
  Branches       65       73       +8     
==========================================
+ Hits          429      459      +30     
  Misses         65       65              
- Partials        2        3       +1     
Impacted Files Coverage Δ
src/palletjack/utils.py 91.93% <91.93%> (ø)
src/palletjack/updaters.py 91.61% <100.00%> (+0.41%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e05076c...cb49c7b. Read the comment docs.