Skip to content

Issue #2716 - Independent time-zone mode: opt-out properties#2756

Draft
jhou-pro wants to merge 33 commits into
developfrom
Issue-#2716-independent-from-#2224
Draft

Issue #2716 - Independent time-zone mode: opt-out properties#2756
jhou-pro wants to merge 33 commits into
developfrom
Issue-#2716-independent-from-#2224

Conversation

@jhou-pro

Copy link
Copy Markdown
Member

Resolve #2716

To be completed by the pull request creator

This section should be completed with reference to section Preparing PR of the Code and PR reviews wiki page.

  • Create the pull request as a draft by tapping the dropdown arrow on the 'Create pull request' button under the pull request description (below the text box where this description is being edited) and changing the default Create pull request to Draft pull request.
    Or, if the pull request has already been created, convert it to draft by tapping the "Convert to draft" link beneath the "Reviewers" section.

  • A self-review of all changes has been completed, and the changes are in sync with the issue requirements.

  • Changes to the requirements have been reflected in the issue description.

  • Any "leftovers" such as sysouts, printing of stack traces, and any other "temporary" code, have been removed.

  • Minor refactorings, such as renamings, extraction of constants, etc., have been addressed.

  • Developer documentation (e.g., comments, Javadoc), have been provided where required.

  • All existing and new Java tests pass successfully by running them with Maven.

  • New Web tests have been written or existing tests adjusted, if required, to cover the new functionality.

  • All existing and new Web tests pass successfully.

  • Changes have been inspected for possible NPE situations, and the changes are sufficiently defensive.

  • The correct base branch has been selected for these changes to be merged into.

  • The latest changes from the base branch have already been merged into this feature branch (and tested).

  • Added a change overview to the issue description or as a wiki page, referenced in the issue description.
    Some issues might be very descriptive and serve in place of a wiki page.
    In such cases consider adding label Wiki like to the issue.

  • Changes subject to performance considerations have been evaluated, and tested against production-size data if applicable.

  • This pull request does not contain significant changes, and at least one appropriate reviewer has been selected.

  • The In progress label has been removed from the issue.

  • The Pull request label has been added to the issue.

  • The pull request has been made ready for review by tapping the "Ready for review" button below the list of commits on the pull request page.

To be completed by the pull request reviewer

This section should be completed with reference to section Performing PR review of the Code and PR reviews wiki page.

  • The In progress label has been added to the pull request in GitHub.

  • The issue requirements have been read and understood (along with any relevant emails and/or Slack messages).

  • The correct base branch is specified, and that base branch is up-to-date in the local source.

  • The issue branch has been checked out locally, and had the base branch merged into it.

  • All automated tests pass successfully.

  • Ensure the implementation satisfies the functional requirements.

  • Ensure that code changes are secure and align with the established coding practices, including code formatting and naming conventions.

  • Ensure that code changes are documented and covered with automated tests as applicable.

  • Ensure that code changes are well-suited for informal reasoning.

  • Ensure that changes are documented for the end-user (a software engineer in the case of TG, or an application user in the case of TG-based applications).

  • If there are significant changes (described above), special attention has been paid to them.
    Marked the task items in section "Significant changes" as completed to indicate that corresponding changes have been reviewed, improved if necessary, and approved.

  • The issue or issues addressed by the pull request are associated with the relevant release milestone.

To be completed by the pull request reviewer once the changes have been reviewed and accepted

  • The changes have been merged into the base branch (unless there is a specific request not to do so, e.g., they are to be released to SIT).

  • The issue branch has been deleted (unless the changes have not been merged - see above, or there is a specific request not to do so).

  • The In progress label has been removed from the pull request.

  • The Pull request label has been removed from the issue.

jhou-pro added 22 commits May 31, 2026 09:56
…for properties marked with 'isDependentTimeZoneMode()'.
…updated tg-date-utils API methods. Remove incorrect _momentTz parameter (date portion) in scatter plot date value accessor.
…ZoneMode functions. Simplify checks for independent time-zone mode ('window.TG_APP?.timeZone').
… type 'from / to' criteria properties.

This is necessary for correct UI logic in Entity Centre selection criteria.

-----
Changes from merge during cherry picking from Issue-#2716 to Issue-#2716-independent-from-#2224.
…e-zone are now taken from entity type property on the client.
… time-zone. The time-zone is now taken from entity type property on the client.

refs 7d0f278
Date values convert to String representation. See end-application Lead Time Analysis reports, where horizontal axis has date values.
… for regular, fixed tz and DependentTimeZoneMode properties.
…only if not specified explicitly. Minor improvements.
 * Abstract out more high-level API and hide internal API in date utils. Adjust external imports accordingly.
 * Reduce code duplication.
 * Correct / strengthen optional chaining to check intended properties.
 * Improve 'now' API to be simpler and in sync with other APIs (+test).
…on. It is now taken from entity type property on the client.

 * Extract String constants.
 * Jdocs markdownisation.
 * Static imports.
 * Code reuse.
 * Code formatting for easier reading.
jhou-pro added 3 commits June 1, 2026 07:24
@TimeOnly UTC: necessary due to '_millisDateRepresentation' signature change.

@TimeOnly LOCAL: nice to have (were not failing).
jhou-pro added 7 commits June 5, 2026 12:06
…of standard parameters either with 'display: true' or otherwise.

This simplifies the API, makes it more robust and allows further extensions.

 * Adjust prod usages.
 * Adjust web tests.
 * Doc markdownisation and style improvements.
…ependentTimeZoneMode for independent tz mode servers (+tests).

 * Only show server tz for values different from current. This will prevent showing of server tz representation for values in different time-zone, but with the same time.
 * Cover Entity Master, Entity Centre selection criteria, and EGI.
 * Narrowed down to as narrow logic as possible to avoid big EGI / date editors impact.
 * Adjust docs accordingly.
 * Re-factor tg-date-utils to support new changes.
Column types are either 'Date::' or 'Date:someTimeZone:someTimePortion'.
@01es 01es removed the In progress label Jun 22, 2026
@01es 01es marked this pull request as draft June 22, 2026 02:07
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.

Independent time-zone mode: opt-out properties

2 participants