Skip to content

denis/configure: inform user when dumping dirty#277

Merged
charliemirabile merged 1 commit intomasterfrom
dirty_dumping_denis_destroyed
Oct 2, 2025
Merged

denis/configure: inform user when dumping dirty#277
charliemirabile merged 1 commit intomasterfrom
dirty_dumping_denis_destroyed

Conversation

@theyoyojo
Copy link
Contributor

When the assignment database is altered, the due date waiters must be restarted in order for the new due dates to be operative using:

$ denis/configure.sh reload

Currently there is no way to know that one has forgotten to run this command. Add a warning message to the output of:

$ denis/configure.sh dump

to indicate when one has altered the database but not yet operationalized their intentions.

Fixes #257

@theyoyojo theyoyojo mentioned this pull request Sep 7, 2025
Copy link
Contributor

@charliemirabile charliemirabile left a comment

Choose a reason for hiding this comment

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

I think it might be cleaner to have the start.py touch a /tmp/reload file every time it reloads and then just compare the mtime from stating the db vs that file so that you don't need to litter the calls to dirty() throughout the whole file relying on the fact that if an update occurs, the db will be written to and have its mtime bumped.

@theyoyojo theyoyojo force-pushed the dirty_dumping_denis_destroyed branch 4 times, most recently from 637f2a6 to a3281d5 Compare September 29, 2025 17:54
Copy link
Contributor

@charliemirabile charliemirabile left a comment

Choose a reason for hiding this comment

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

lgtm

When the assignment database is altered, the due date waiters must be
restarted in order for the new due dates to be operative using:

$ denis/configure.sh reload

Currently there is no way to know that one has forgotten to run this
command. Add a warning message to the output of:

$ denis/configure.sh dump

to indicate when one has altered the database but not yet
operationalized their intentions.

Fixes #257

Signed-off-by: Joel Savitz <joel@underground.software>
@theyoyojo theyoyojo force-pushed the dirty_dumping_denis_destroyed branch from a3281d5 to b31a752 Compare October 2, 2025 16:33
Copy link
Contributor

@charliemirabile charliemirabile left a comment

Choose a reason for hiding this comment

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

Re-Ack in light of necessary changes to pass CI.

@charliemirabile charliemirabile merged commit 94806e8 into master Oct 2, 2025
1 check passed
@charliemirabile charliemirabile deleted the dirty_dumping_denis_destroyed branch October 2, 2025 16:38
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.

idiot proof denis reloading

2 participants