Skip to content

[WIP]Add grouping by week#533

Closed
cliffparnitzky wants to merge 4 commits intocontao-community-alliance:masterfrom
cliffparnitzky-forks:master
Closed

[WIP]Add grouping by week#533
cliffparnitzky wants to merge 4 commits intocontao-community-alliance:masterfrom
cliffparnitzky-forks:master

Conversation

@cliffparnitzky
Copy link
Copy Markdown
Contributor

Implements the backend grouping by week

screen

Checklist

  • Read and understood the CONTRIBUTING guidelines
  • Created tests, if possible
  • All tests passing
  • Extended the README / documentation, if necessary
  • Added myself to the @authors in touched PHP files
  • Checked the changes with phpcq and introduced no new issues

Implements the backend grouping by week
if ('' === $value) {
return '-';
}
$event = new ParseDateEvent($value, 'W. Y');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Adjust the output of the new grouping. The monthly grouping already exists. This output should not differ.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The W. creates the numer of the number of the week in current year.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I meant please remove the dot.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hmm...
with the month, the issue is not the number, but the name... I'm not sure if it's better with or without a dot...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think without the dot we need somtehing else (e.g. KW as prefix).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@cliffparnitzky Sorry, I misread the format of the grouping for the month.

Copy link
Copy Markdown
Contributor

@zonky2 zonky2 Nov 30, 2020

Choose a reason for hiding this comment

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

we should add a default date format and override this with date format from language file

But you should note that the weeks start differently - in DE on Monday, in UK/US on Sunday
see https://de.wikipedia.org/wiki/Woche#Kalenderwoche

When grouped by week, it should therefore be possible to select an additional calculation - currently the "German" according to ISO8601

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am also all for providing/using language keys for the formats.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@cliffparnitzky can you change your PR?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

MM call: ISO8601 reicht!

Comment thread .check-author.yml Outdated
@baumannsven baumannsven self-assigned this May 8, 2020
@baumannsven baumannsven added this to the 2.2.0 milestone May 8, 2020
@cliffparnitzky
Copy link
Copy Markdown
Contributor Author

@baumannsven @zonky2 Additional proposal:

I can also add the last missing grouping option, which is ``. But we should decide the format first (have a look at the option here: https://www.php.net/manual/de/function.date.php).

What about Monday, 05.04.2020 ???

@baumannsven baumannsven changed the title Add grouping by week [WIP]Add grouping by week May 8, 2020
@cliffparnitzky
Copy link
Copy Markdown
Contributor Author

@baumannsven @zonky2 Additional proposal:

I can also add the last missing grouping option, which is ``. But we should decide the format first (have a look at the option here: https://www.php.net/manual/de/function.date.php).

What about Monday, 05.04.2020 ???

In mumble we decided to create different PRs for each option.

@zonky2 zonky2 modified the milestones: 2.2.0, Future May 4, 2022
@cliffparnitzky-forks cliffparnitzky-forks closed this by deleting the head repository Nov 9, 2023
@zonky2
Copy link
Copy Markdown
Contributor

zonky2 commented Nov 9, 2023

? ? ?

@cliffparnitzky
Copy link
Copy Markdown
Contributor Author

Hmmm, Mist, hab hier irgendwas gemacht, was ich nicht wollte.

@cliffparnitzky
Copy link
Copy Markdown
Contributor Author

Wie mit @zonky2 besprochen mache ich den PR nochmal neu auf den neusten Branch. Grundsätzlich wie bereits implementiert, aber eben mit Language Keys für die Ausgabe.

  • DE: W. Y
  • EN: W Y

@cliffparnitzky
Copy link
Copy Markdown
Contributor Author

Follow up PR is #616

stefanheimes added a commit that referenced this pull request Nov 18, 2023
Add grouping by week (replaces #533)
stefanheimes added a commit that referenced this pull request Nov 18, 2023
Hotfix release 2.3.2

- Fix undefined array key problem
- Fix limit of list
- Fix request token at change language
- Add grouping by week (replaces #533)
- Fix code style in templates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants