Skip to content

(BE) Support VIDEO_60_PERCENT_WATCHED event type #855#423

Merged
mariusmarin-dev merged 1 commit into
mainfrom
855-60_percent_watched
Jul 16, 2026
Merged

(BE) Support VIDEO_60_PERCENT_WATCHED event type #855#423
mariusmarin-dev merged 1 commit into
mainfrom
855-60_percent_watched

Conversation

@mariusmarin-dev

Copy link
Copy Markdown

No description provided.

* @param eventJSON the client supplied event details.
* @return a {@link SegueErrorResponse} describing the first validation failure, or null if the payload is valid.
*/
private SegueErrorResponse validateVideoEngagementEvent(final Map<String, Object> eventJSON) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📝 [checkstyle] <com.puppycrawl.tools.checkstyle.checks.naming.AbbreviationAsWordInNameCheck> reported by reviewdog 🐶
Abbreviation in name 'eventJSON' must contain no more than '1' consecutive capital letters.

* @param fieldName the field to read.
* @return the value as a Double, or null if the field is absent or not a number.
*/
private static Double getNumericField(final Map<String, Object> eventJSON, final String fieldName) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📝 [checkstyle] <com.puppycrawl.tools.checkstyle.checks.naming.AbbreviationAsWordInNameCheck> reported by reviewdog 🐶
Abbreviation in name 'eventJSON' must contain no more than '1' consecutive capital letters.

for (int i = 1; i < userIds.size(); i++) {
inParams.append(",?");
}
String inParams = "?" +

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck> reported by reviewdog 🐶
'+' should be on a new line.

* logged as normal.
* @throws SegueDatabaseException if the deduplication lookup fails.
*/
private Response handleVideoEngagementEvent(final Map<String, Object> eventJSON,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📝 [checkstyle] <com.puppycrawl.tools.checkstyle.checks.naming.AbbreviationAsWordInNameCheck> reported by reviewdog 🐶
Abbreviation in name 'eventJSON' must contain no more than '1' consecutive capital letters.

@mariusmarin-dev
mariusmarin-dev force-pushed the 855-60_percent_watched branch from c57e609 to 4b99327 Compare July 13, 2026 20:04
Adds the VIDEO_60_PERCENT_WATCHED client log event: /log validation (logged-in user, payload checks, watch threshold) with per-user/per-video deduplication
@mariusmarin-dev
mariusmarin-dev force-pushed the 855-60_percent_watched branch from 4b99327 to ebe4575 Compare July 13, 2026 20:06
@sonarqubecloud

Copy link
Copy Markdown

@mariusmarin-dev
mariusmarin-dev merged commit 891d083 into main Jul 16, 2026
5 of 6 checks passed
@mariusmarin-dev
mariusmarin-dev deleted the 855-60_percent_watched branch July 16, 2026 07:47
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