absmach / magistrala-ui

UI Repository for Magistrala IoT
9 stars 15 forks source link

[BUG] Failed thing creation does not show an error on ui #235

Open WashingtonKK opened 3 months ago

WashingtonKK commented 3 months ago

Is there an existing issue for this?

What were you trying to achieve?

When trying to create a thing and a duplicate id is used, there is no error message to show you that you are using a duplicate id.

What are the expected results?

An error should be displayed on ui to show that thing creation failed.

What are the received results?

The thing is not created and no error is shown

Steps To Reproduce

  1. On magistrala-ui thing management
  2. Create a thing successfully
  3. Attempt to create another thing using a thing id used to create the previous thing

In what environment did you encounter the issue?

Magistrala-ui

Additional information you deem important

No response

dborovcanin commented 1 week ago

I don't see how it's possible to have duplicate IDs. @WashingtonKK Please elaborate and close if this one is resolved.

WashingtonKK commented 1 day ago

@dborovcanin , On thing creation, there is an option to provide a thing ID as shown below: image

This creates a thing successfully with the provided ID.

When another thing is created and the same ID is provided, the thing is not created and no error is returned either.

image

The result is thing B is not created and no error is returned on this operation.

image