feat: aging report of tickets#283
Conversation
haiphucnguyen
left a comment
There was a problem hiding this comment.
Good first attempt for this PR @MrChatterjee98 . I leave some comments. There are some parts I don't know how to implement it efficiently yet (the part of grouping attribute). But the comments are enough for the second version of this PR :)
...backend/commons/src/main/java/io/flowinquiry/modules/teams/controller/ReportsController.java
Outdated
Show resolved
Hide resolved
.../backend/commons/src/main/java/io/flowinquiry/modules/teams/repository/TicketRepository.java
Outdated
Show resolved
Hide resolved
...ommons/src/main/java/io/flowinquiry/modules/teams/repository/impl/ReportsRepositoryImpl.java
Outdated
Show resolved
Hide resolved
apps/backend/commons/src/main/java/io/flowinquiry/modules/teams/service/ReportsService.java
Outdated
Show resolved
Hide resolved
bf5cb3d to
0043719
Compare
|
@haiphucnguyen I have addressed all the comments, however I am having some issues with filtering by the Priority. While I figure that out and unit tests (hopefully by tomorrow) you can add your reviews for the rest of the code. |
Sure @MrChatterjee98 . Yeah, i also just commented to ask you write some tests :). Looking forward to your update |
|
@haiphucnguyen Please check out the final changes from my end with added tests |
haiphucnguyen
left a comment
There was a problem hiding this comment.
Hi @MrChatterjee98, thank you so much for your contribution!
I’d like to take a bit more time to review the implementation thoroughly and will share detailed feedback by this Friday (possibly sooner).
The reason for the delay is that we’re planning to support multiple report types, so I’m exploring a more generic and reusable approach for generating reports, something that would also make writing report APIs easier going forward.
Thanks again!
...kend/tools/liquibase/src/main/resources/config/liquibase/tenant/data/test/fw_ticket_test.csv
Outdated
Show resolved
Hide resolved
apps/backend/server/src/main/resources/config/application-dev.yml
Outdated
Show resolved
Hide resolved
apps/backend/commons/src/main/java/io/flowinquiry/modules/teams/service/ReportsService.java
Outdated
Show resolved
Hide resolved
|
Hi @MrChatterjee98 , I am going to create a PR to demonstrate a new reporting api and add you as a reviewer. You please let me know how that approach work, then see if you can apply to this PR. Please keep me some days :) |
|
Gladly 😀 |
Hi @MrChatterjee98, I created a follow-up PR (#287 The original requirements around buckets turned out to be quite complex, so I simplified the approach and adjusted the implementation accordingly. The changes are largely aligned with your PR. I plan to continue working on this tomorrow. If you’re okay with it, I can close my PR afterward and you can continue working on your original PR, or we can go with whichever approach you prefer. Thanks again for the solid work! |
|
I took a look at your PR and I would be happy to implement those changes and update my current PR. However, I have some observations.
if you think my observations are correct, I will go forward and make the changes to my PR and update it as |
You're absolutely right @MrChatterjee98 😀 That’s the foundation for the PR, so feel free to add anything that’s missing. I realize I made the requirements too complicated at the start, sorry about that. The bucketing logic is very complex, and most of the time users don’t really need it. If they do, we’ll provide a custom solution for each customer instead of a generic one for everyone. |
|
@haiphucnguyen I have updated the PR code according to the PR you provided, and I will be updating the tests soon. Merry Christmas 😃 Edit 1: I have added new unit tests. Please take a look P.S: |
haiphucnguyen
left a comment
There was a problem hiding this comment.
LTGM, except some method names should be changed. Thank you @MrChatterjee98
...backend/commons/src/main/java/io/flowinquiry/modules/teams/controller/ReportsController.java
Outdated
Show resolved
Hide resolved
apps/backend/commons/src/main/java/io/flowinquiry/modules/teams/service/ReportsService.java
Outdated
Show resolved
Hide resolved
apps/backend/server/src/test/java/io/flowinquiry/modules/teams/service/ReportsServiceIT.java
Outdated
Show resolved
Hide resolved
...nd/server/src/test/java/io/flowinquiry/modules/teams/service/TicketAgingReportServiceIT.java
Show resolved
Hide resolved
|
Most of these functions/classes are named during the first draft, I'll update them and let you know |
Thanks @MrChatterjee98 |
|
@haiphucnguyen Please take a look I have changed the names, also for some reason the CI pipelines failed can't figure out why? For my forked repo I re-ran them, and they seem to be working link |
haiphucnguyen
left a comment
There was a problem hiding this comment.
Thank you, @MrChatterjee98, for your ongoing contributions.
No worries, @MrChatterjee98. I re‑ran the workflows and they all passed. It looks like a GitHub intermittent build issue. |
|
If you’d like to jump in, feel free to pick any open issue #274, which covers both front‑end and back‑end work. You’re welcome to open a brand‑new issue and build it from scratch. Your contributions would be a huge help to the project! |
Aging reports for tickets
I have raised this as a first draft, I will smoothen the changes optimize the code further to reduce duplicationA feature implementing the tickets aging report.
Changes Made
Additional Notes