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

implement more group_by options #833

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

blind-coder
Copy link

Implement group_by options week, month and year

@minermartijn
Copy link

Does this work now? I was just looking for this and now sure how to use it.

@blind-coder
Copy link
Author

Does this work now? I was just looking for this and now sure how to use it.

It needs to merged, but I use it on my instance already. The grouping isn't perfect for month and year, but works solidly for week.

@acmaarts
Copy link

When is this expected to be released? This is just the thing I've been waiting for! 👍

@stale
Copy link

stale bot commented Oct 22, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale issue - closed due to inactivity label Oct 22, 2022
@kalkih kalkih removed the stale Stale issue - closed due to inactivity label Oct 22, 2022
src/buildConfig.js Outdated Show resolved Hide resolved
src/buildConfig.js Outdated Show resolved Hide resolved
src/main.js Outdated Show resolved Hide resolved
@jlsjonas
Copy link
Collaborator

Hi,
There are a couple changes needed before we can integrate them though, as mentioned above.
Please also rebase your changes onto the dev branch and target it instead.

Thanks a lot for your contribution! And my apologies for the slow review

@blind-coder
Copy link
Author

Hello,

I have made the changes, thanks for the input. I'm not familiar with rebase and pushing afterwards, I hope I did it correctly. If not, let me know and I'll file a new PR with properly forked branches from dev.

@jlsjonas jlsjonas changed the base branch from master to dev October 25, 2022 16:13
@jlsjonas
Copy link
Collaborator

@blind-coder thanks for the changes! It looks like a few commits from master sneaked in though :)
Could you interactively rebase your branch, removing the 3 readme-related commits & force push one more time?
Thanks!

@blind-coder
Copy link
Author

blind-coder commented Nov 3, 2022 via email

@stale
Copy link

stale bot commented Dec 3, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale issue - closed due to inactivity label Dec 3, 2022
Copy link
Collaborator

@akloeckner akloeckner left a comment

Choose a reason for hiding this comment

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

While browsing around, I noticed a possible bug and took the liberty to review.

date.setHours(0, 0, 0);
break;
case 'week':
date.setDate(date.getDate() - date.getDay() + 1); // First day of the week
Copy link
Collaborator

Choose a reason for hiding this comment

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

I just flipped through the PRs here and noticed: should this not be the first day of next week at 0h00? See the date case below... The same applies to month and year.

@@ -488,6 +488,37 @@ state_map:
label: Detected
```

#### Showing additional info on the card

![изображение](https://user-images.githubusercontent.com/71872483/170584118-ef826b60-dce3-42ec-a005-0f467616cd37.png)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since I added the other comment on the code. Here are three more:

  • There seems to have sneaked in some non-English characters. Possibly from uploading the image?
  • Should the image be part of the commit?
  • Should the new grouping options be documented? If so, I'd suggest to also going on the caveat that month and year will not be 100% accurate, because they use fixed intervals.

@stale
Copy link

stale bot commented Dec 6, 2022

Still an active issue, got it! Removing stale label.

3 similar comments
@stale
Copy link

stale bot commented Dec 6, 2022

Still an active issue, got it! Removing stale label.

@stale
Copy link

stale bot commented Dec 6, 2022

Still an active issue, got it! Removing stale label.

@stale
Copy link

stale bot commented Dec 6, 2022

Still an active issue, got it! Removing stale label.

@stale stale bot removed stale Stale issue - closed due to inactivity labels Dec 6, 2022
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.

None yet

7 participants