Skip to content

chore: [ANDROSDK-2339] migrate RepositoryScope to Kotlin#2656

Merged
taridepaco merged 4 commits into
developfrom
ANDROSDK-2339
Jul 2, 2026
Merged

chore: [ANDROSDK-2339] migrate RepositoryScope to Kotlin#2656
taridepaco merged 4 commits into
developfrom
ANDROSDK-2339

Conversation

@taridepaco

@taridepaco taridepaco commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Migrates RepositoryScope from a Java AutoValue class to a Kotlin data class using the @ModelBuilder annotation (domain models batch 20). It also adjusts ModelBuilderProcessor so that the builder backing properties generated for internal fields use private visibility instead of protected: this prevents an internal type from leaking through a public builder while avoiding name shadowing inside callers' builder().apply { } blocks.

It additionally fixes a null pointer bug in program stage section handling by moving the logic that assigns the parent program stage UID to the network layer instead of the handler.

Related task: ANDROSDK-2339

@taridepaco taridepaco changed the base branch from master to develop July 2, 2026 08:50
@sonarqubecloud

sonarqubecloud Bot commented Jul 2, 2026

Copy link
Copy Markdown

data class RepositoryScope internal constructor(
val filters: List<RepositoryScopeFilterItem>,
val complexFilters: List<RepositoryScopeComplexFilterItem>,
internal val orderBy: List<RepositoryScopeOrderByItem>,

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.

Why are these two properties internal? They were public before.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

They were exposing an internal classes (RepositoryScopeComplexFilterItem and RepositoryScopeOrderByItem)

@taridepaco taridepaco merged commit 80e0cac into develop Jul 2, 2026
11 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.

3 participants