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

Dates inconsistencies in new advance task wizard and schedules #4079

Merged

Conversation

daniele-mng
Copy link
Contributor

What

This PR addresses two bugs:

  1. Incorrect Duration Display in Schedules Table: The issue was with the event.duration getter, which incorrectly included weeks in the duration calculation, leading to inaccurate duration displays in the schedules table.

  2. Start Date Issue in Task Advance Wizard: The problem is from using moment.day() (which returns the day of the week) instead of moment.date() (which returns the calendar day) when setting the start date for a new task, resulting in incorrect start dates.

Why

These fixes ensure the application's scheduling and task management functionalities work as intended, preventing confusion.

References

GEA-610

Checklist

  • Tests

@daniele-mng daniele-mng requested a review from a team as a code owner June 24, 2024 11:44
Copy link

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA bac7755.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

Copy link

Conventional Commits Report

Type Number
Bug Fixes 1

🚀 Conventional commits found.

Copy link

codecov bot commented Jun 24, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 72.32%. Comparing base (5d09434) to head (bac7755).
Report is 7 commits behind head on main.

Files Patch % Lines
src/gmp/commands/wizard.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4079      +/-   ##
==========================================
- Coverage   72.33%   72.32%   -0.02%     
==========================================
  Files        1068     1067       -1     
  Lines      122256   122228      -28     
  Branches     6059     6057       -2     
==========================================
- Hits        88438    88404      -34     
- Misses      33787    33793       +6     
  Partials       31       31              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@timopollmeier timopollmeier merged commit 97516f4 into main Jun 25, 2024
12 of 13 checks passed
@timopollmeier timopollmeier deleted the dates-inconsistencies-in-new-task-wizard-and-schedules branch June 25, 2024 07:26
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.

2 participants