Skip to content

Conversation

@Nazarah
Copy link
Contributor

@Nazarah Nazarah commented Jun 7, 2018

Closes #1878
Closes #1886

Changes

  1. created getServerTimeZone function in store.js to retrieve server time and extract the time zone.

  2. Added new label apiAnalyticPageHeader_helpText_serverTimezone in en.i18n.json to show server timezone in API analytics page header.

  3. Added new label dashboardOverviewStatistic_helpText_serverTimezone in en.i18n.json to show server timezone on each row in Dashboard.

  4. Added new template 'apiAnalyticPageHeader_helpText_serverTimezone' servertimezone=(serverTimeZone) in header.html to show server timezone as help text on API analytics page header.

  5. In header.js, created new function calling server to retrieve server timezone. Also created associated helper function serverTimeZone() to display the timezone in API analytics page header.

  6. Added new template 'dashboardOverviewStatistic_helpText_serverTimezone' servertimezone=(serverTimeZone) in overview.html to show server timezone as help text on each row in Dashboard.

  7. In overview.js, created new function calling server to retrieve server timezone. Also created associated helper function serverTimeZone() to display the timezone on each row in Dashboard.

Developer checklist

This checklist is to be completed by the PR developer:

  • Alternative solutions were compared/discussed before writing code
    • trade-offs with this solution are considered acceptable
  • Code in this PR adheres to the project styleguide
  • This pull request does not decrease project test coverage
  • If the code changes existing database collection(s), migration has been written
  • If UI texts are added or changed, all texts are internationalized

Reviewer checklist

Reviewed by: @username1

This list is to be completed by the pull request reviewer:

  • Code works as described/expected
  • Code seems to be error free
    • no browser console errors visible
    • no server console errors visible
    • passes CI build
  • Code is written in a way that promotes maintainability
    • easy to understand
    • well organized
    • follows project coding standards and conventions
    • well documented

1. created "getServerTimeZone" function in store.js to retrieve server time and extract the time zone.

2. Added new label "apiAnalyticPageHeader_helpText_serverTimezone" in en.i18n.json to show server timezone in API analytics page header.

3. Added new label "dashboardOverviewStatistic_helpText_serverTimezone" in en.i18n.json to show server timezone on each row in Dashboard.

4. Added new template "'apiAnalyticPageHeader_helpText_serverTimezone' servertimezone=(serverTimeZone)" in header.html to show server timezone as help text on API analytics page header.

5. In header.js, created new function calling server to retreive server timezone. Also created associated helper function "serverTimeZone()" to display the timezone in API analytics page header.

6. Added new template "'dashboardOverviewStatistic_helpText_serverTimezone' servertimezone=(serverTimeZone)" in overview.html to show server timezone as help text on each row in Dashboard.

7. In overview.js, created new function calling server to retreive server timezone. Also created associated helper function "serverTimeZone()" to display the timezone on each row in Dashboard.
@ghost ghost assigned Nazarah Jun 7, 2018
@ghost ghost added the in progress label Jun 7, 2018
1. header.js: added space between comment symbol and text

2.  header.js: added space "," in Meteor.call('getServerTimeZone', (error, result) =>

3. overview.js: imported Meteor and ReactiveVar packages.
@Nazarah
Copy link
Contributor Author

Nazarah commented Jun 8, 2018

Also Under fac5cc4 commit, in store.js. redefined the variables serverTime and timeZone as "const" to fix travis build errors.

Copy link
Member

@matleppa matleppa left a comment

Choose a reason for hiding this comment

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

Functionality as expected

@matleppa matleppa merged commit 6a52f3a into develop Jun 8, 2018
@ghost ghost removed the Ready for review label Jun 8, 2018
@matleppa matleppa deleted the feature/display-server-timezone-on-dashboard branch June 8, 2018 08: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