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

add generic object exporter via annotations #1831

Merged
merged 23 commits into from
Jul 21, 2020
Merged

Conversation

kevinpapst
Copy link
Member

@kevinpapst kevinpapst commented Jul 19, 2020

Description

Added an exporter that can generate Excel files from a list of objects, based on annotations.
No more complicated and hard-wired logic to format columns...

Can be tested at https://demo-branch.kimai.org/

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I verified that my code applies to the guidelines (composer code-check)
  • I updated the documentation (see here)
  • I agree that this code is used in Kimai and will be published under the MIT license

@codecov
Copy link

codecov bot commented Jul 19, 2020

Codecov Report

Merging #1831 into master will increase coverage by 0.03%.
The diff coverage is 95.01%.

@@             Coverage Diff              @@
##             master    #1831      +/-   ##
============================================
+ Coverage     92.54%   92.57%   +0.03%     
- Complexity     5069     5161      +92     
============================================
  Files           470      489      +19     
  Lines         15698    15978     +280     
============================================
+ Hits          14528    14792     +264     
- Misses         1170     1186      +16     
Impacted Files Coverage Δ Complexity Δ
src/Entity/Activity.php 100.00% <ø> (ø) 34.00 <0.00> (ø)
src/Entity/ColorTrait.php 100.00% <ø> (ø) 4.00 <0.00> (ø)
src/Entity/Customer.php 100.00% <ø> (ø) 80.00 <0.00> (ø)
src/Entity/Project.php 100.00% <ø> (ø) 62.00 <0.00> (ø)
src/Entity/User.php 98.46% <ø> (ø) 74.00 <0.00> (ø)
src/Repository/InvoiceRepository.php 69.23% <ø> (-0.39%) 21.00 <0.00> (ø)
...xport/Spreadsheet/CellFormatter/ArrayFormatter.php 85.71% <85.71%> (ø) 3.00 <3.00> (?)
...ort/Spreadsheet/CellFormatter/BooleanFormatter.php 85.71% <85.71%> (ø) 3.00 <3.00> (?)
...rt/Spreadsheet/CellFormatter/DurationFormatter.php 85.71% <85.71%> (ø) 3.00 <3.00> (?)
src/Export/Annotation/Expose.php 87.50% <87.50%> (ø) 4.00 <4.00> (?)
... and 46 more

@kevinpapst kevinpapst merged commit aee063b into master Jul 21, 2020
@kevinpapst kevinpapst deleted the generic-exporter branch July 21, 2020 01:37
pinedev pushed a commit to pinedevstudio/kimai2 that referenced this pull request Mar 23, 2021
* added user exporter
* added project exporter
* added customer exporter
* added activity exporter
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
1 participant