Skip to content

mail debug, submit debug, current directives as the condition #90

Merged
bdc34 merged 9 commits into
developfrom
bdc34/directives-current-condition
Jul 17, 2026
Merged

mail debug, submit debug, current directives as the condition #90
bdc34 merged 9 commits into
developfrom
bdc34/directives-current-condition

Conversation

@bdc34

@bdc34 bdc34 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

1. Changes to status and moved it to /debug/1234

image image

2. Adds mail debug

Screenshot_20260716_165208_debug_mail ### 3. Changes condition for review files Changes it from "has any start directive event" to "has a start directive event that is current" by checking that no file changes happen after the most recent start directive event.

@bdc34
bdc34 marked this pull request as ready for review July 17, 2026 15:18

@norbusan norbusan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Two minor comments, otherwise LGTM

Comment thread submit_ce/ui/routes/ui.py
return response


@UI.route('/debug/mail', methods=["GET"])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nitpick: all other /debug/* routes are scoped to is_admin_or_dev - but that only is relevant if EMAIL_MODE=TESTING anyway.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Will fix this. TY.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed


function openModal(link) {
title.textContent = (link.dataset.type || 'Event') + ' JSON';
idEl.textContent = 'event id ' + link.dataset.eventId || '';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is that working correctly? AFAIR + binds stronger thant ||, so the whole will expand to event id undefined if the eventId is not defined?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

event id undefined would be good when it is undefined. I'll remove the || ''

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changed.

@bdc34
bdc34 merged commit 0709a56 into develop Jul 17, 2026
1 check passed
@bdc34
bdc34 deleted the bdc34/directives-current-condition branch July 17, 2026 17:55
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.

2 participants