Skip to content

MS-109 Add custom field for installed version history tracking#1304

Merged
luhmirin-s merged 1 commit into
mainfrom
feature/MS-109-version-history-cache
Aug 7, 2025
Merged

MS-109 Add custom field for installed version history tracking#1304
luhmirin-s merged 1 commit into
mainfrom
feature/MS-109-version-history-cache

Conversation

@luhmirin-s
Copy link
Copy Markdown
Contributor

JIRA ticket
Will be released in: 2025.3.0

Notable changes

  • On process start, adds version update history to custom analytics fields.
  • Only tracking within the "update" flows and not across re-installs since this custom field is aimed at helping with the version migration.

Testing guidance

  • Run some flows, check the logs for the user properties.

Additional work checklist

  • Effect on other features and security has been considered
  • Design document marked as "In development" (if applicable)
  • External (Gitbook) and internal (Confluence) Documentation is up to date (or ticket created)
  • Test cases in Testiny are up to date (or ticket created)
  • Other teams notified about the changes (if applicable)

@luhmirin-s luhmirin-s requested review from a team, BurningAXE, TristramN, alex-vt, alexandr-simprints, meladRaouf and ybourgery and removed request for a team August 6, 2025 10:40
@cla-bot cla-bot Bot added the ... label Aug 6, 2025
import android.content.Context.MODE_PRIVATE
import androidx.core.content.edit

class GetCachedVersionNamesUseCase {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice way of auto-updating version history! However, in general I'd avoid having a get function have lots of side effects and writes. Maybe something like UpdateAndGetVersionHistory, GetUpdatedVersionHistory, etc would convey the meaning better.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can rename it to "FetchVersionHistoryUseCase" to keep it simple.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see you've updated it to UpdateAndGetVersionHistoryUseCase - that's clearer IMO 👍

@luhmirin-s luhmirin-s force-pushed the feature/MS-109-version-history-cache branch from 6cfefcb to 87af048 Compare August 7, 2025 09:48
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Aug 7, 2025

@luhmirin-s luhmirin-s merged commit 095c22e into main Aug 7, 2025
13 checks passed
@luhmirin-s luhmirin-s deleted the feature/MS-109-version-history-cache branch August 7, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants