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

fix(project): fixes project update with vpn state #246

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

pallabpain
Copy link
Member

@pallabpain pallabpain commented Dec 14, 2023

Description

Recently, the project update API was updated to reflect the state as sent in the request payload. The vpn command in project had the older implementation and we forgot to update it when the project update API was changed. This issue can lead to serious loss of project info if not fixed in time. This commit corrects that by first fetching the project and updating it with the new values before passing it as the payload for update.

For example, created a new project with a few labels or add one or more users or groups. Then run rio project features vpn {PROJECT_NAME} true. You will notice that in rio project inspect {PROJECT_NAME}, the labels or users are gone except the admins.

However, with the fix, things should be fine.

Recently, the project update API was updated to reflect the state as
sent in the request payload. The vpn command in project had the older
implementation and we forgot to update it when the project update API
was changed. This issue can lead to serious loss of project info if not
fixed in time. This commit corrects that by first fetching the project
and updating it with the new values before passing it as the payload for
update.
@pallabpain pallabpain requested review from a team as code owners December 14, 2023 08:02
Copy link

🤖 Pull Request Artifacts (#7206038636) 🎉

@pallabpain pallabpain self-assigned this Dec 14, 2023
@pallabpain pallabpain added the 🐛 bug Something isn't working label Dec 14, 2023
@pallabpain pallabpain merged commit 82709f6 into devel Dec 15, 2023
7 checks passed
rr-github-ci-user pushed a commit that referenced this pull request Dec 28, 2023
# [6.0.0](v5.0.0...v6.0.0) (2023-12-28)

### Bug Fixes

* **project:** fixes project update with vpn state ([#246](#246)) ([82709f6](82709f6))

### Features

* **auth:** add support for AKS staging environments ([59d30e9](59d30e9))
* **device:** adds --advertise-routes flag in the vpn command ([6cea521](6cea521))
* **device:** updates device delete command to delete multiple devices ([#217](#217)) ([1a35403](1a35403))
* **jsonschema:** updates features attribute in project schema ([c4cd332](c4cd332))
* **project:** accepts subnets while enabling vpn ([#245](#245)) ([06bbf7f](06bbf7f))

### BREAKING CHANGES

* **jsonschema:** The vpn and tracing attributes under .spec.features
have been changed from type=boolean to type=object. Enabling vpn on a
project will now require one to set .spec.features.vpn.enabled=True and
likewise for any other project feature.
@rr-github-ci-user
Copy link
Collaborator

🎉 This PR is included in version 6.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pallabpain pallabpain deleted the fix/project-update-in-vpn-command branch January 24, 2024 10:27
RomilShah pushed a commit that referenced this pull request Apr 23, 2024
# [6.0.0](v5.0.0...v6.0.0) (2023-12-28)

### Bug Fixes

* **project:** fixes project update with vpn state ([#246](#246)) ([82709f6](82709f6))

### Features

* **auth:** add support for AKS staging environments ([59d30e9](59d30e9))
* **device:** adds --advertise-routes flag in the vpn command ([6cea521](6cea521))
* **device:** updates device delete command to delete multiple devices ([#217](#217)) ([1a35403](1a35403))
* **jsonschema:** updates features attribute in project schema ([c4cd332](c4cd332))
* **project:** accepts subnets while enabling vpn ([#245](#245)) ([06bbf7f](06bbf7f))

### BREAKING CHANGES

* **jsonschema:** The vpn and tracing attributes under .spec.features
have been changed from type=boolean to type=object. Enabling vpn on a
project will now require one to set .spec.features.vpn.enabled=True and
likewise for any other project feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants