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

[no ticket] Add GoogleComputeService.modifyInstanceMetadata method #293

Merged
merged 5 commits into from
Apr 1, 2020

Conversation

rtitle
Copy link
Contributor

@rtitle rtitle commented Mar 31, 2020

Needed for Leo to remove metadata entries only needed for instance creation, not startup.

No breaking change or version bump.

See Leo PR: DataBiosphere/leonardo#1342

PR checklist

  • For each library you've modified here, decide whether it requires a major, minor, or no version bump. (Click here for guidance)

If you're doing a major or minor version bump to any libraries:

  • Bump the version in project/Settings.scala createVersion()
  • Update CHANGELOG.md for those libraries
  • I promise I used @deprecated instead of deleting code where possible

In all cases:

  • Replace the appropriate version hashes in README.md and the CHANGELOG.md for any libs you changed with TRAVIS-REPLACE-ME to auto-update the version string
  • Get two thumbsworth of PR review
  • Verify all tests go green (CI and coverage tests)
  • Squash commits and merge to develop
  • Delete branch after merge

@rtitle rtitle changed the title [no ticket] Add GoogleComputeService.removeInstanceMetadata method [no ticket] Add GoogleComputeService.modifyInstanceMetadata method Mar 31, 2020
.setFingerprint(fingerprint)
.addAllItems((curItems.filterNot(i => metadata.contains(i.getKey)) ++ metadata.toList.map {
newItems = curItems
.filterNot(i => metadataToRemove.contains(i.getKey) || metadataToAdd.contains(i.getKey)) ++ metadataToAdd.toList
Copy link
Contributor

Choose a reason for hiding this comment

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

scalafmt please 😃

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But I did! Some things even scalafmt can't clean up.

(I'll make this nicer :))

@rtitle rtitle merged commit 51bf177 into develop Apr 1, 2020
@rtitle rtitle deleted the rt-add-remote-metadata branch April 1, 2020 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants