Skip to content

Conversation

@Luke-Sanderson
Copy link
Contributor

@Luke-Sanderson Luke-Sanderson commented Jul 18, 2024

Proposed changes

Adds two scripts to allow the local postman collection to be uploaded to Postman:

  • transform-for-api.sh : Applies JSON transformations to prepare the collection for the API
  • upload-collection.sh : Uploads the collection to Postman by either creating or updating an existing remote Collection

Jira ticket: CLOUDP-262013

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works

Further comments

@Luke-Sanderson Luke-Sanderson marked this pull request as ready for review July 18, 2024 13:19
@Luke-Sanderson Luke-Sanderson requested a review from a team as a code owner July 18, 2024 13:19
{"key": "digestAuthPassword", "value": "<string>"},
{"key": "realm", "value": "<string>"}]' intermediate1.json > "$COLLECTION_TRANSFORMED_FILE_NAME"
else
cp intermediate1.json "$COLLECTION_TRANSFORMED_FILE_NAME"
Copy link
Member

Choose a reason for hiding this comment

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

Consider naming that adds collection in the name. I do not mind any format. It can be even

Suggested change
cp intermediate1.json "$COLLECTION_TRANSFORMED_FILE_NAME"
cp advancedCollection1.json "$COLLECTION_TRANSFORMED_FILE_NAME"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed to intermediateCollection

Copy link
Collaborator

Choose a reason for hiding this comment

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

bit of a nit; but As a general good practice it might be better to use more meaningful separation of names:
intermediateCollectionUnmodified, intermediateCollectionNoQueryParams, intermediateCollectionNoPostmanId etc

@Luke-Sanderson Luke-Sanderson requested a review from wtrocki July 18, 2024 14:27
Copy link
Collaborator

@matt-condon matt-condon left a comment

Choose a reason for hiding this comment

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

Non-blocking comment - LGTM

@Luke-Sanderson Luke-Sanderson merged commit d6a7718 into main Jul 18, 2024
@Luke-Sanderson Luke-Sanderson deleted the CLOUDP-262013 branch July 18, 2024 15:04
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.

4 participants