-
Notifications
You must be signed in to change notification settings - Fork 881
Bug: Workspace Schedule: Days of week are not defaulted to settings defined at creation time via cli (new workspace) #1901
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
Comments
The issue here is that our FE conversion from the BE response only considers numbers for day-of-week, not MON, TUES etc. We can either make the FE convertor understand both formats, or unify the formats in the BE. cc @johnstcn for opinion. I'm of the opinion that the FE should understand both formats. |
According to the manual page for crontab names can be used only for the |
I'll take a look at tackling this problem by utilizing |
Resolves: #1901 Summary: We had a homegrown parser that only understood numbers, not strings like MON or TUES. We replace the homegrown parser with cron-parser. Details: This was nearly a straight drop-in. Impact: Much less code/maintenance burden :D What I learned: Don't trust the README, sometimes you just gotta read the code or import it and try it out. The `fields` representation of the parsed expression was missing from their docs. I might open an issue or PR to update them!
Resolves: #1901 Summary: We had a homegrown parser that only understood numbers, not strings like MON or TUES. We replace the homegrown parser with cron-parser. Details: This was nearly a straight drop-in. Impact: Much less code/maintenance burden :D What I learned: Don't trust the README, sometimes you just gotta read the code or import it and try it out. The `fields` representation of the parsed expression was missing from their docs. I might open an issue or PR to update them!
Resolves: #1901 Summary: We had a homegrown parser that only understood numbers, not strings like MON or TUES. We replace the homegrown parser with cron-parser. Details: This was nearly a straight drop-in. Impact: Much less code/maintenance burden :D What I learned: Don't trust the README, sometimes you just gotta read the code or import it and try it out. The `fields` representation of the parsed expression was missing from their docs. I might open an issue or PR to update them!
OS Information
coder --version
:Coder v0.0.0-devel+6850db2
Steps to Reproduce
Expected
Monday and Tuesday checkboxes are checked
Actual
All week day checkboxes are unchecked
Logs
Screenshot
week-days.mp4
Notes
The text was updated successfully, but these errors were encountered: