Skip to content
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

Completed scheduled maintenance should appear in timeline #93 #117

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

steffjenl
Copy link
Contributor

@jbrooksuk can you look to this PR, Because Data Objects is not ready I have created an solution for the different types of objects for now.

Copy link
Member

@jbrooksuk jbrooksuk left a comment

Choose a reason for hiding this comment

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

I think that we should create Data Objects for this, and merge the incidents / schedules into each other before displaying then. Pairing this with #107 would make things a lot more consistent between the two types of data too.

@empty
<div class="text-zinc-500 dark:text-zinc-400 text-center">
{{ __('No incidents reported between :from and :to.', ['from' => $from, 'to' => $to]) }}
@foreach ($incidents as $date => $incident)
Copy link
Member

Choose a reason for hiding this comment

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

Looking at this, I think that if incidents are empty, but schedules aren't, then nothing will show.

@jbrooksuk jbrooksuk linked an issue Oct 15, 2024 that may be closed by this pull request
@jbrooksuk
Copy link
Member

@steffjenl schedules have just had a refactor to now determine their status based on the scheduled_at and completed_at timestamps. Can we rebase this branch to main? Also, we don't need to commit the compiled assets.

* main: (61 commits)
  Use null safe op instead of optional helper
  Remove unused ProfileUpdateRequest form request
  Remove unused method
  Fix variable
  Add return type
  Fix bad resource relation
  Fix code styling
  Schedule status doesn't need to be defined manually
  Allow creating schedule updates from table view
  Add logout button to status page
  Don't add `autocomplete` to `TextColumn`
  Compile Assets
  Update DEPENDABOT.yml
  Use Node 22 when building assets
  Use PHP 8.3 when compiling assets
  Fix docblock
  Fix code styling
  Scheduled Maintenance Updates (cachethq#109)
  Fix ordering of incident timeline within a day
  Improve incident API
  ...
@jbrooksuk
Copy link
Member

@steffjenl I've merged main into this. We do now have Data Objects in place thanks to @joelbutcher, so we could look to rework this PR to use them.

@jbrooksuk
Copy link
Member

@steffjenl do you still have any appetite to get this merged or shall I look into it separately? I'd love for this to be your contribution.

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.

Completed scheduled maintenance should appear in timeline
2 participants