gramps icon indicating copy to clipboard operation
gramps copied to clipboard

Calendarreport

Open mbalk opened this issue 4 years ago • 4 comments

mbalk avatar Jan 03 '21 09:01 mbalk

Codecov Report

Merging #1163 (aaa9ac7) into master (7443cf4) will increase coverage by 0.01%. The diff coverage is 75.59%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1163      +/-   ##
==========================================
+ Coverage   41.17%   41.18%   +0.01%     
==========================================
  Files        1062     1062              
  Lines      144609   144654      +45     
==========================================
+ Hits        59538    59578      +40     
- Misses      85071    85076       +5     
Impacted Files Coverage Δ
gramps/plugins/drawreport/calendarreport.py 86.21% <75.59%> (-2.04%) :arrow_down:
gramps/gen/utils/symbols.py 87.50% <0.00%> (+1.56%) :arrow_up:
gramps/plugins/test/exports_test.py 91.35% <0.00%> (+2.46%) :arrow_up:
gramps/gen/plug/docgen/fontscale.py 90.66% <0.00%> (+5.33%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7443cf4...aaa9ac7. Read the comment docs.

codecov-io avatar Jan 03 '21 10:01 codecov-io

You should use the symbols functions: get_symbol_for_string or get_symbol_fallback for all symbols except the death symbol. You have an example in gramps/gui/widgets/fanchart.py

From 5.1, we can select our proper death symbol, so you must use: death_symbol_idx = config.get('utf8.death-symbol') or death_symbol_idx = self.uistate.death_symbol self.dth = self.symbols.get_death_symbol_for_char(death_symbol_idx)

SNoiraud avatar Jan 04 '21 08:01 SNoiraud

You should use the symbols functions [...]

Thank you for your review! I pushed some changes.

mbalk avatar Jan 07 '21 14:01 mbalk

Rebased.

This looks good to me. I'll ask for people who use this report to test it.

Nick-Hall avatar Mar 06 '22 19:03 Nick-Hall

Testing should include:

  • Check that the new "Include death dates" option works.
  • Check that the birth, marriage and death symbols appear correctly.
  • Check that no existing functionality is adversely affected.

Nick-Hall avatar Oct 19 '22 14:10 Nick-Hall

@mbalk if "Include only living people" is checked and "Include death dates" is checked then I would expect "Include only living people" to still be honored but all the deceased people are showing up on the calendar anyway. Other than that this looks good to me.

cdhorn avatar Mar 05 '23 01:03 cdhorn