-
-
Notifications
You must be signed in to change notification settings - Fork 0
chore(deps): content-provider 1.4.27 #106
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
Conversation
WalkthroughThe version of the Changes
Assessment against linked issues
Assessment against linked issues: Out-of-scope changes
Possibly related PRs
Suggested reviewers
elimu.ai's mission is to build innovative learning software that empowers out-of-school children to teach themselves basic reading📖, writing✍🏽 and math🔢 within 6 months. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (8)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Migrate `learningEventType` to additional data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
app/src/main/java/ai/elimu/filamu/ui/video/VideoActivity.kt (2)
98-101
: Great refactoring for structured video completion analytics!The JSONObject approach with explicit "eventType" and "video_playback_position_ms" keys creates clear, structured analytics data that will better support elimu.ai's mission to track learning progress as children teach themselves basic reading📖, writing✍🏽 and math🔢.
Consider extracting the "video_playback_position_ms" key as a constant to improve maintainability:
+ companion object { + const val EXTRA_KEY_VIDEO_ID: String = "extra_key_video_id" + const val EXTRA_KEY_VIDEO_TITLE = "extra_key_video_title" + private const val ANALYTICS_KEY_PLAYBACK_POSITION = "video_playback_position_ms" + }Then use the constant in both JSON objects:
- put("video_playback_position_ms", videoPlayer.duration) + put(ANALYTICS_KEY_PLAYBACK_POSITION, videoPlayer.duration)
138-141
: Consistent pattern for early video closure analytics!The structured approach matches the completion event pattern perfectly, providing consistent analytics data structure for both video completion and early closure scenarios. This supports comprehensive learning analytics for elimu.ai's educational mission.
Apply the same constant suggestion here for consistency:
- put("video_playback_position_ms", videoPlayer.currentPosition) + put(ANALYTICS_KEY_PLAYBACK_POSITION, videoPlayer.currentPosition)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
app/src/main/java/ai/elimu/filamu/ui/VideosActivity.kt
(2 hunks)app/src/main/java/ai/elimu/filamu/ui/video/VideoActivity.kt
(2 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: jo-elimu
PR: elimu-ai/filamu#45
File: gradle/libs.versions.toml:3-3
Timestamp: 2025-04-24T14:23:34.460Z
Learning: The elimu-ai organization's dependencies (including analytics, model, and content-provider) are hosted on JitPack rather than Maven Central, and the projects are configured to use the JitPack repository.
⏰ Context from checks skipped due to timeout of 90000ms (8)
- GitHub Check: test (29)
- GitHub Check: test (28)
- GitHub Check: build (macos-latest, 17)
- GitHub Check: build (windows-latest, 21)
- GitHub Check: build (macos-latest, 21)
- GitHub Check: build (windows-latest, 17)
- GitHub Check: build (ubuntu-latest, 17)
- GitHub Check: build (ubuntu-latest, 21)
🔇 Additional comments (2)
app/src/main/java/ai/elimu/filamu/ui/VideosActivity.kt (2)
28-28
: LGTM! Import addition supports the analytics refactoring.The JSONObject import is correctly added to support the new structured analytics event reporting. This aligns with elimu.ai's mission to build innovative learning software that empowers out-of-school children to teach themselves basic reading📖, writing✍🏽 and math🔢 within 6 months by enabling better analytics tracking.
124-126
: Excellent refactoring to structured analytics events!The change from passing the enum directly to creating a JSONObject with an explicit "eventType" key makes the analytics event structure more explicit and maintainable. This standardization will help track video learning interactions more effectively, supporting elimu.ai's mission to empower children's self-directed learning.
additionalData = extraData, | ||
learningEventType = LearningEventType.VIDEO_CLOSED_BEFORE_COMPLETION, | ||
additionalData = JSONObject().apply { | ||
put("eventType", LearningEventType.VIDEO_CLOSED_BEFORE_COMPLETION) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jo-elimu Should we create constant for eventType
as well, similar to ANALYTICS_PLAYBACK_POSITION
for consistency?
Also, there's a merge conflict with main
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tuancoltech Yes, we can do that.
Also, we should decide on a format standard for the fields stored inside the additionalData
JSON object:
{
"eventType": "VIDEO_COMPLETED",
"video_playback_position_ms": 5000
}
Currently we have a mix of camelCase and snake_case, so we should decide on a standard format to use across all of our apps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jo-elimu I'm fine with either of the choices.
What about using snake case for JSON keys?
https://github.com/elimu-ai/content-provider/releases/tag/1.4.27
Issue Number
Purpose
Technical Details
Screenshots
Testing Instructions
Regression Tests
UI Tests
Content Tests
eng.elimu.ai
)hin.elimu.ai
)tgl.elimu.ai
)tha.elimu.ai
)vie.elimu.ai
)Summary by CodeRabbit
Summary by CodeRabbit