10000 Quartz - display trigger timezone in UI #3971 by Ki10V01T · Pull Request #4579 · jmix-framework/jmix · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Quartz - display trigger timezone in UI #3971 #4579

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

Merged
merged 5 commits into from
Jul 4, 2025

Conversation

Ki10V01T
Copy link
Contributor
@Ki10V01T Ki10V01T commented Jul 2, 2025

Fixes: #3971

…d field into QuartzService. Changed JobModelDetailView and JobModelListView for adding info about time zone from models to view about the time zone information views
@Ki10V01T Ki10V01T requested a review from Gavrilov-Ivan July 2, 2025 09:57
@Ki10V01T Ki10V01T self-assigned this Jul 2, 2025
Ki10V01T added 2 commits July 2, 2025 16:57
…t timeZone (or nothing in it's absence) into schedule description column
…s to ScheduleDescriptionProvider. Adapted the tests for the new logic.
when(triggerModelMock2.getScheduleType()).thenReturn(CRON_EXPRESSION);
when(triggerModelMock2.getCronExpression()).thenReturn(CRON_EXPRESSION_EXAMPLE_2);

when(jobModelMock.getTriggers()).thenReturn(asList(triggerModelMock, triggerModelMock2));

ScheduleDescriptionProvider service = new ScheduleDescriptionProvider(mock(Messages.class));
assertEquals(CRON_EXPRESSION_EXAMPLE+", "+CRON_EXPRESSION_EXAMPLE_2, service.getScheduleDescription(jobModelMock));
assertEquals(expectedResult1+", "+expectedResult2, service.getScheduleDescription(jobModelMock));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Small refactoring: prepare a final expected result as variable - it will be a little cleaner.

@Ki10V01T Ki10V01T merged commit c2ea247 into master Jul 4, 2025
@Ki10V01T Ki10V01T deleted the 3971-quartz-display-trigger-timezone-in-ui branch July 4, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quartz - display trigger timezone in UI
2 participants
0