Skip to content

Conversation

rschneider-chwy
Copy link

@rschneider-chwy rschneider-chwy commented May 30, 2024

Hello from your friends at Chewy! 🐶🐱

Fixes #33 and fixes #73

Taking a crack at adding support for specific versions for update-local and import. PAPI V1 supports specifying the network with calling GET latest version, so I added a check to pass the --network when present:

`/papi/v1/properties/${propertyId}/versions/latest?activatedOn=${network}`

If the --propver is selected it will grab the specific version instead:

`/papi/v1/properties/${propertyId}/versions/${versionId}`

I tested it locally and it looks to be working! Let me know if there's anything more I need to provide.

@rschneider-chwy rschneider-chwy changed the title Feature/adding network ruletree update local Feature: Adding support for specific network versions import and update-local May 31, 2024
@TomHart
Copy link

TomHart commented Jun 10, 2024

Any update on if this will be merged? This would be useful for something I'm working on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Support --propver flag in import command Fetch the staging version or production version, not the latest version

2 participants