Implement migration to allow multiple submissions per contest while p…#105
Merged
GauriGupta21 merged 1 commit intoindictechcom:mainfrom Dec 27, 2025
Merged
Conversation
…reventing duplicate articles - Added Alembic migration to update the `submissions` table, converting `article_created_at` from VARCHAR to DATETIME format. - Updated unique constraint to allow multiple submissions per user per contest, while ensuring article uniqueness using a prefix index on `article_link`. - Modified submission logic to handle duplicate article submissions and improved error handling in the API. - Adjusted model and route files to reflect changes in submission constraints and error messaging.
Collaborator
|
Just to align on process, during the last call, I had mentioned that I’d be working on this. |
Collaborator
Author
|
This anomalies was from my side when i implemented submission logic then created this submit restrictions so i thought it's better to fix from my side> Just to align on process, during the last call, I had mentioned that I’d be working on this. |
Collaborator
|
Thanks for the context. Just to clarify we had discussed this earlier and I had shared that I was already working on it. Since I wasn’t updated that parallel work was also in progress, I continued with my implementation, which led to overlapping efforts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…reventing duplicate articles
submissionstable, convertingarticle_created_atfrom VARCHAR to DATETIME format.article_link.