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

Allow for update (PATCH) of group's name #589

Open
sripwoud opened this issue Oct 29, 2024 · 9 comments
Open

Allow for update (PATCH) of group's name #589

sripwoud opened this issue Oct 29, 2024 · 9 comments
Labels
blocked feature 🚀 This is enhancing something existing or creating something new

Comments

@sripwoud
Copy link

sripwoud commented Oct 29, 2024

Is your feature request related to a problem? Please describe.
Right now it is not allowed to update the name of a group via PATCH /groups/{group}.

curl -X 'PATCH' \
  'https://api.bandada.pse.dev/groups/<redacted>' \
  -H 'accept: application/json' \
  -H 'x-api-key: <redacted>' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "new name"
}'

gives

{
  "statusCode": 400,
  "message": [
    "property name should not exist"
  ],
  "error": "Bad Request"
}

Indeed update-group.dto.ts does not include name

Describe the solution you'd like
I'd like the RESTAPI and SDK to allow updating the name

Describe alternatives you've considered
Deleting the existing group and recreating a new one with the new desired name, adding back all members.

@sripwoud sripwoud added the feature 🚀 This is enhancing something existing or creating something new label Oct 29, 2024
@Iwueseiter
Copy link

Hi @sripwoud please can I work on this?

@sripwoud
Copy link
Author

sripwoud commented Oct 29, 2024

@Iwueseiter I'd say go ahead. But I am not admin/maintainer of this repo though: @vplasencia ?
(maybe I am lacking context, and there is/was a reason to not allow updating the group's name?)

@vplasencia
Copy link
Member

Hey @sripwoud! Thank you very much for creating the issue. It should be solved by adding the group name to the update-group.dto.ts

@vplasencia
Copy link
Member

Hey @Iwueseiter yes, you can work on it. Do you want me to assign you the issue?

@Iwueseiter
Copy link

Hey @Iwueseiter yes, you can work on it. Do you want me to assign you the issue?

yes please I'm ready to work.

@vplasencia
Copy link
Member

Hey @Iwueseiter! I just assigned the issue to you. Please, let us know if you have any questions.

@Iwueseiter
Copy link

Hey @Iwueseiter! I just assigned the issue to you. Please, let us know if you have any questions.

Alright🚀

@vplasencia
Copy link
Member

Hey @sripwoud and @Iwueseiter!

It's not possible to update the group name right now because the group id is created using the name. I think we would need to find a different way to generate the group id first.

@sripwoud
Copy link
Author

Hey @sripwoud and @Iwueseiter!

It's not possible to update the group name right now because the group id is created using the name. I think we would need to find a different way to generate the group id first.

I created #593

@Iwueseiter Iwueseiter removed their assignment Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked feature 🚀 This is enhancing something existing or creating something new
Projects
None yet
Development

No branches or pull requests

3 participants