Skip to content

MMI-3349#2524

Merged
AlessiaYChen merged 12 commits intobcgov:devfrom
AlessiaYChen:MMI-3349-update
Nov 25, 2025
Merged

MMI-3349#2524
AlessiaYChen merged 12 commits intobcgov:devfrom
AlessiaYChen:MMI-3349-update

Conversation

@AlessiaYChen
Copy link
Collaborator

No description provided.

* Ensures report-level and section-level settings include explicit boolean values for
* removeDuplicateTitles3Days and applies dedupe logic before persisting.
*/
export const sanitizeReport = (report: IReportForm): IReportForm => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this just remove duplicate stories with same title? If so, is this essentially the same logic added to the ReportService?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added the client-size logic so that when the toggle is on, duplicates will be removed from the report. The logic in ReportService is not called immediately when the toggle is turned on.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that will make a better user experience.

@Fosol
Copy link
Collaborator

Fosol commented Nov 5, 2025

I've merged my latest fixes and deployed to production. You'll regrettably need to resolve conflicts in your PR. Sorry!

Copy link
Collaborator

@Fosol Fosol left a comment

Choose a reason for hiding this comment

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

Looks good

@Fosol Fosol added enhancement New feature or request subscriber PR contains changes towards the subscriber application, editor tno-core update Indicates that there have been changes to our tno-core package, which can pose concurrency issues. labels Nov 5, 2025
@AlessiaYChen AlessiaYChen requested a review from Fosol November 25, 2025 17:59
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't have any suggestions atm, but I'm noting a pattern of increased complexity to the generation of reports. It'll get more difficult to add functionality or change functionality going forward. Offhand I don't know how we can clean things up so that it gets easier.

@AlessiaYChen AlessiaYChen merged commit 71acd30 into bcgov:dev Nov 25, 2025
3 checks passed
AlessiaYChen added a commit to AlessiaYChen/tno that referenced this pull request Nov 25, 2025
* added remove duplicate titles for the last 3 days

* update npm package

* fix editor bug

* fix editor build error

* add missing changes

* remove files and added missing files

* update logic if content with the same title already sent out, it will not send to subscribers again when the flag is on

* update
AlessiaYChen added a commit that referenced this pull request Nov 25, 2025
* added remove duplicate titles for the last 3 days

* update npm package

* fix editor bug

* fix editor build error

* add missing changes

* remove files and added missing files

* update logic if content with the same title already sent out, it will not send to subscribers again when the flag is on

* update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editor enhancement New feature or request subscriber PR contains changes towards the subscriber application, tno-core update Indicates that there have been changes to our tno-core package, which can pose concurrency issues.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants