Skip to content

refactor(coderd/schedule): move cron schedule to cron package #9507

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 2 commits into from
Sep 4, 2023

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Sep 4, 2023

This removes an indirect import of coderd/database from the CLI and
results in a logical separation between server related and generalized
schedule.

No size change (yet).

Ref: #9380

Not sure about the deep nesting into coderd, I'm open to moving this package elsewhere, perhaps top-level?

This removes an indirect import of `coderd/database` from the CLI and
results in a logical separation between server related and generalized
schedule.

No size change (yet).

Ref: #9380
@mafredri mafredri self-assigned this Sep 4, 2023
@mafredri mafredri requested a review from johnstcn September 4, 2023 10:26
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

👍 Only minor nit is possible collision with robfig/cron/v3

@mafredri
Copy link
Member Author

mafredri commented Sep 4, 2023

👍 Only minor nit is possible collision with robfig/cron/v3

@johnstcn Do you mean it will lead to confusion reading the code? I could realias the import 🤔. Or do you have any suggestion for an alternate package name (in our repo)?

@johnstcn
Copy link
Member

johnstcn commented Sep 4, 2023

Do you mean it will lead to confusion reading the code? I could realias the import 🤔. Or do you have any suggestion for an alternate package name (in our repo)?

Up to you! I don't have any constructive suggestions here but I don't consider this a blocker to merge.

@mafredri mafredri merged commit ad23d33 into main Sep 4, 2023
@mafredri mafredri deleted the mafredri/refactor-schedule-cron branch September 4, 2023 13:48
@github-actions github-actions bot locked and limited conversation to collaborators Sep 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants