Skip to content

chore: remove enableV2NotifierJob flag support #6196

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shekhar-rudder
Copy link
Member

@shekhar-rudder shekhar-rudder commented Jul 30, 2025

Description

This PR gets rid of the enableV2NotifierJob flag. Going forward all the notifier jobs will of the V2 type.

  • Got rid of all the v1 code from notifier, slave and master
  • Added a migration to remove the staging file id column from load files table. Removed the field from model and repo as well

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@shekhar-rudder shekhar-rudder force-pushed the war-476-remove-column2 branch 2 times, most recently from 111b930 to b99bcc6 Compare July 30, 2025 06:43
Base automatically changed from war-476-remove-flag to master July 30, 2025 06:50
@@ -300,13 +300,13 @@ func scanJob(scan scanFn, job *Job) error {
}
if jobTypeRaw.Valid {
Copy link
Contributor

Choose a reason for hiding this comment

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

do we allow nulls for jobtype?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. There is no NON NULL constraint for job_type column

While not ideal, this is acceptable given that there won't be many such jobs.
*/
job.loadfile.AllowUploadV2JobCreation(job.DTO())
job.config.alwaysRegenerateAllLoadFiles
Copy link
Contributor

Choose a reason for hiding this comment

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

With notifier v2 upload job being the default we should always regenerate the files right?

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.

3 participants