Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixed the weekly time entry view after week change#432

Merged
abinashpa merged 1 commit intodevelopfrom
fix-weekly-time-view
Jun 7, 2022
Merged

Fixed the weekly time entry view after week change#432
abinashpa merged 1 commit intodevelopfrom
fix-weekly-time-view

Conversation

@sudeeptarlekar
Copy link
Contributor

Signed-off-by: sudeeptarlekar [email protected]

Notion card

Summary

When we change the week in weekly view, time entries are not getting updated correctly. Fixed the issue.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  1. Select week view on time entries page.
  2. Change week and observe that time entries are not getting updated.

Expected: Time entries should update according to week.

Checklist:

  • I have manually tested all workflows
  • I have performed a self-review of my own code

@github-actions
Copy link

github-actions bot commented Jun 1, 2022

Current Code Coverage Percent of this PR:

84.24 %

Files having coverage below 100%

Impacted Files Coverage
/app/controllers/subscriptions_controller.rb 66.67 %
/app/controllers/invoices_controller.rb 57.14 %
/app/models/invoice.rb 96.3 %
/app/policies/timezone_policy.rb 66.67 %
/app/policies/subscriptions_policy.rb 66.67 %
/app/policies/client_policy.rb 95.45 %
/app/policies/invoice_policy.rb 94.12 %
/app/controllers/invoices/payments_controller.rb 61.11 %
/app/services/report/filters.rb 87.88 %
/app/services/invoice_payment/checkout.rb 44.0 %
/app/services/invoice_payment/pdf_generation.rb 70.97 %
/app/controllers/internal_api/v1/timezones_controller.rb 37.5 %
/app/controllers/internal_api/v1/clients_controller.rb 94.44 %
/app/controllers/internal_api/v1/invoices_controller.rb 94.87 %
/lib/benchmarking/benchmarker.rb 0.0 %
/lib/countries_info.rb 0.0 %

@supriya3105 supriya3105 requested review from apoorv1316 and removed request for supriya3105 June 2, 2022 07:11
@supriya3105
Copy link
Contributor

@abinashpa Please review this code.

@abinashpa
Copy link
Contributor

@sudeeptarlekar The app shows total hours for the week correctly but something is wrong with rendering entries.

@abinashpa abinashpa added the bug Something isn't working label Jun 2, 2022
@sudeeptarlekar
Copy link
Contributor Author

Because we are not updating current entries and week view used current entries to display hours.

@abinashpa
Copy link
Contributor

@sudeeptarlekar The total hours of currentEntries are for that particular row. Total hours for the entire week are calculated by calculateTotalWeeklyDuration.

@supriya3105
Copy link
Contributor

@abinashpa @sudeeptarlekar Please discuss the changes and close the comments here . I could not understand from the review comments if something needs to be fixed or not.

Copy link
Contributor

@abinashpa abinashpa left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@abinashpa abinashpa merged commit 6796c53 into develop Jun 7, 2022
@abinashpa abinashpa deleted the fix-weekly-time-view branch June 7, 2022 10:02
@pr-triage pr-triage bot added the PR: merged label Jun 7, 2022
vipulnsward pushed a commit that referenced this pull request Feb 15, 2026
Fixed the weekly time entry view after week change
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.

4 participants