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

Cannot create more than one channel #343

Closed
Entrivax opened this issue Jan 6, 2024 · 2 comments
Closed

Cannot create more than one channel #343

Entrivax opened this issue Jan 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Entrivax
Copy link
Contributor

Entrivax commented Jan 6, 2024

I can't create a new channel with the "Create" button in the administration of channels.
It says the channel already exists.
I suspect a conflict between the frontend not allowing to specify an External Id, while requiring it to be unique in the database.
This is even more blocking by the fact there looks to be no way to edit that external id afterwards.

brave_cmSwDIrKB6.mp4

https://github.com/Zibbp/ganymede-frontend/blob/9e6f34c0b1c0d09beba502b1531f9dd0668aaa3a/src/components/Admin/Channels/Drawer.tsx#L42-L48

cha, err := s.Store.Client.Channel.Create().SetExtID(channelDto.ExtID).SetName(channelDto.Name).SetDisplayName(channelDto.DisplayName).SetImagePath(channelDto.ImagePath).Save(context.Background())

field.String("ext_id").Unique().Comment("The external ID of the channel.").Optional(),

@Zibbp
Copy link
Owner

Zibbp commented Jan 6, 2024

Yep its failing to create the channel because of the issue you described. Fixes available in #344 & Zibbp/ganymede-frontend#20. I'll get these in a release either tonight or tomorrow. I don't allow updated the external ID as I use that in the backend quite a bit and don't want someone changing as it would break some functionality. If you'd like to change the external ID you'll need to do so via the database.

Fixes should be available on the :main image tags shortly if you want to test.

@Zibbp Zibbp added the bug Something isn't working label Jan 6, 2024
@Entrivax
Copy link
Contributor Author

Entrivax commented Jan 6, 2024

Looks good now, thank you!
I'm closing the issue.

@Entrivax Entrivax closed this as completed Jan 6, 2024
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

No branches or pull requests

2 participants