Skip to content

feat: [ANDROSDK-2238] Analytics: respect configured start day in relative weekly period#2552

Merged
taridepaco merged 9 commits intodevelopfrom
ANDROSDK-2238
Feb 23, 2026
Merged

feat: [ANDROSDK-2238] Analytics: respect configured start day in relative weekly period#2552
taridepaco merged 9 commits intodevelopfrom
ANDROSDK-2238

Conversation

@taridepaco
Copy link
Copy Markdown
Collaborator

@taridepaco taridepaco commented Feb 16, 2026

This PR adds the required logic to use weeks starting in different days than Monday (depending on the corresponding System Settings parameter) for analytics.

Related task: ANDROSDK-2238

@taridepaco taridepaco self-assigned this Feb 16, 2026
}
}

override fun getWeekStart(): PeriodType {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is equivalent to the financialYear method, right? Shouldn't it be called getWeeklyPeriodType to be consistent?


override fun generateRelativePeriods(relativePeriod: RelativePeriod): List<Period> {
val periodType = relativePeriod.getPeriodType(yearly.financialYearPeriodHelper)
val periodType = relativePeriod.getPeriodType(yearly.relativePeriodHelper)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It is accessing the relativePeriodHelper through the yearly variable, but it is not just for yearly, it is for weekly as well. Maybe the helper shouldn't be located inside the yearly period generator?

private val legendStore: LegendStore = koin.get()
private val clockProvider = ClockProviderFactory.createFixed()
private val financialYearPeriodHelper = FinancialYearPeriodHelperMock()
private val financialYearPeriodHelper = RelativePeriodHelperMock()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There are many variables in the test classes that have not been renamed

@sonarqubecloud
Copy link
Copy Markdown

@taridepaco taridepaco merged commit 2dc17ed into develop Feb 23, 2026
10 checks passed
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