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

Components Tags #4423

Closed
JanBlatter opened this issue Oct 15, 2024 · 5 comments
Closed

Components Tags #4423

JanBlatter opened this issue Oct 15, 2024 · 5 comments

Comments

@JanBlatter
Copy link

Hello I'm new to Cachet and I'm working on my first status page.

I have a major problem with components and their tags.
When I drag and drop to reorder a component several times, an error message appears saying "ordering not updated".

Issue1

And when I check the Tags array in Postman, i see some sort of duplicates
Issue2

Do you have a solution for this ?

Thanks in advance.

@ppomes
Copy link

ppomes commented Oct 15, 2024

@jbrooksuk - probably the same issue as #4415, and probably solved by #4403

@ppomes
Copy link

ppomes commented Oct 15, 2024

@JanBlatter - maybe you can try #4403 to validate?

@JanBlatter
Copy link
Author

I tried #4403 but it didn't work for me. However, I can close this issue because i resolved it with another solution.

I simply changed the $tags in postUpdateComponentOrder function

@ppomes
Copy link

ppomes commented Oct 17, 2024

Hi,

Can you show your diff?

Thanks!
Pierre

@JanBlatter
Copy link
Author

Hello,

I added in /var/www/html/app/Http/Controllers/Dashboard/ApiController.php

  • $tags = Binput::get('tags'. []);
  • $tags,

try {
$tags = Binput::get('tags'. []);
execute(new UpdateComponentCommand(
$component,
$component->name,
$component->description,
Binput::get('status'),
$component->link,
$component->order,
$component->group_id,
$component->enabled,
$component->meta,
$tags,
true // Silent mode `

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

No branches or pull requests

2 participants