Skip to content

Duplicated rows when creating records#75

Merged
sjacgit merged 18 commits intomainfrom
BYNT-1353-duplicated-rows-when-creating-records
Jun 18, 2025
Merged

Duplicated rows when creating records#75
sjacgit merged 18 commits intomainfrom
BYNT-1353-duplicated-rows-when-creating-records

Conversation

@apodacaduron
Copy link
Contributor

Jira Issue

  1. 1353

Description

Problem:
Currently, when creating records on pages such as bulletins, actors, etc., the newly created item is pushed directly into the table without an ID. This causes occasional visual artifacts where the table displays duplicate rows.

Solution:
This PR resolves the issue by using the server response, which includes the correct ID, to update the table. This ensures the integrity of the data displayed and eliminates duplicate rows caused by the missing ID.

Checklist

  • Tests added/updated
  • Documentation updated (if needed)
  • New strings prepared for translations

API Changes (if applicable)

  • Permissions checked
  • Endpoint tests added

Additional Notes

[Any other relevant information]

@apodacaduron apodacaduron requested a review from tarekio January 22, 2025 15:58
@apodacaduron apodacaduron self-assigned this Jan 22, 2025
Copy link
Contributor

@tarekio tarekio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't cover users.

Copy link
Contributor

@tarekio tarekio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR creates a mismatch between the api responses in create and update.

@apodacaduron
Copy link
Contributor Author

@tarekio I’ve reverted the backend changes and removed the code that was manually adding the new item to the table. Since the table data is already being refreshed after creating a new record, this should resolve the issue with duplicate entries.

@apodacaduron apodacaduron requested a review from tarekio June 2, 2025 20:14
Copy link
Contributor

@tarekio tarekio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well.

@tarekio tarekio requested a review from level09 June 5, 2025 20:07
Copy link
Collaborator

@level09 level09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, only the opanapi doesn't validate correctly. and need a small path fix.

- This fix ensures that the OpenAPI specification validates correctly and properly references the schema definitions for the 417 error responses in the create endpoints.
@tarekio tarekio requested review from cango91, level09 and tarekio June 18, 2025 13:44
Copy link
Contributor

@tarekio tarekio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect. We can address other endpoints in a future PR if needed.

Copy link
Collaborator

@level09 level09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sjacgit sjacgit merged commit d809b05 into main Jun 18, 2025
6 of 7 checks passed
@sjacgit sjacgit deleted the BYNT-1353-duplicated-rows-when-creating-records branch June 18, 2025 17:43
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

Successfully merging this pull request may close these issues.

5 participants