rokwire / events-manager

Events Manager is the administrative interface to events in the Rokwire Platform. Through this web application, users can manage existing events coming from calendars and/or create and manage user events.
Apache License 2.0
1 stars 4 forks source link

fix scheduler to take input from setting page #1032

Closed bingzhang closed 1 year ago

bingzhang commented 1 year ago

Description

Please provide a summary of the pull request and the issue it fixes. Please add necessary details, context, dependencies, explanation of when review is needed (see next section), etc.

Fixes #(add issue number here and remove parentheses)

Review Time Estimate

Please give your idea of how soon this pull request needs to be reviewed by selecting one of the options below. This can be based on the criticality of the issue at hand and/or other relevant factors.

Type of changes

Please select a relevant option:

Checklist:

Please select all applicable options:


sandeep-ps commented 1 year ago

Hi, @bingzhang, Thanks. I have feedback on a few items:

  1. Please update the pull request description to fill in the checklist entries. This information will be helpful for all reviewers (current or new). Thanks.
  2. Please update the settings page text about download scheduling to include details about the timezone. Here is a suggestion: Events from these calendars will be crawled, parsed, and published daily at the scheduled time displayed below. The default scheduled time is 11:00 PM (Central Time). You can set a different time below.
  3. When I tried changing the time using the develop branch, it's working locally. With the change in this PR, a PytzUsageWarning warning about the timezone goes away. So, it's definitely an improvement, but to test if this would fix the actual problem, this will need to be deployed to the DEV instance.
  4. After I set the time using the Settings page and restarting Events Manager (consider the example of container restarting due to some reason), Events Manager picks up the value in the environment and not the user input that's in the database. I think the core issue is that the Events Manager needs to prefer the user setting over the environment variable setting. Please fix this. Thanks.
bingzhang commented 1 year ago

Hi, @bingzhang, Thanks. I have feedback on a few items:

  1. Please update the pull request description to fill in the checklist entries. This information will be helpful for all reviewers (current or new). Thanks.
  2. Please update the settings page text about download scheduling to include details about the timezone. Here is a suggestion: Events from these calendars will be crawled, parsed, and published daily at the scheduled time displayed below. The default scheduled time is 11:00 PM (Central Time). You can set a different time below.
  3. When I tried changing the time using the develop branch, it's working locally. With the change in this PR, a PytzUsageWarning warning about the timezone goes away. So, it's definitely an improvement, but to test if this would fix the actual problem, this will need to be deployed to the DEV instance.
  4. After I set the time using the Settings page and restarting Events Manager (consider the example of container restarting due to some reason), Events Manager picks up the value in the environment and not the user input that's in the database. I think the core issue is that the Events Manager needs to prefer the user setting over the environment variable setting. Please fix this. Thanks.

@sandeep-ps I updated the pr. I created a new issue related to your comments. https://github.com/rokwire/events-manager/issues/1035

sandeep-ps commented 1 year ago

Bing, if there is no remaining feedback, I think you can merge this. Thanks.