Skip to content

[Multiple-Profile]feat:profile name validation#20698

Merged
mikehardy merged 2 commits intoankidroid:mainfrom
criticalAY:mp/profile-name-validation
Apr 19, 2026
Merged

[Multiple-Profile]feat:profile name validation#20698
mikehardy merged 2 commits intoankidroid:mainfrom
criticalAY:mp/profile-name-validation

Conversation

@criticalAY
Copy link
Copy Markdown
Contributor

Purpose / Description

Profile Name validation

Fixes

Approach

NA

How Has This Been Tested?

Unit test

Learning (optional, can help others)

NA

Checklist

Please, go through these checks before submitting the PR.

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

@criticalAY criticalAY force-pushed the mp/profile-name-validation branch from 401a9ac to a909e35 Compare April 9, 2026 06:06
@criticalAY criticalAY changed the title Mp/profile name validation [Multiple-Profile]feat:profile name validation Apr 9, 2026
@criticalAY criticalAY added the Blocked by dependency Currently blocked by some other dependent / related change label Apr 9, 2026
profileRegistry.saveProfile(newProfileId, metadata)

Timber.i("Created new profile: $displayName (${newProfileId.value})")
Timber.i("Created new profile: ${displayName.value} (${newProfileId.value})")
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.

Prefer .toString on the class

Copy link
Copy Markdown
Member

@david-allison david-allison left a comment

Choose a reason for hiding this comment

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

Looks great!

ValidationResult is a good abstraction only if you plan to expose these results, I think it's the right call here

@david-allison david-allison added Needs Second Approval Has one approval, one more approval to merge and removed Needs Review labels Apr 9, 2026
Copy link
Copy Markdown
Member

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

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

This seems fine but...

  • would obsolete #20653 if merged as it contains that commit but isn't marked as doing so I don't think?
  • is to address a valid PR comment from Brayan on that PR, and seemingly nothing else ?

So, I'm thinking the second commit should be on that PR there, and should have been developed there ?, as it's cohesive with the PR comment on that PR?

Either way, this combination of two commits LGTM, that's just PR bookeeping and things like that are velocity killers. But in future I think keep PR work cohesive if it's specifically to address feedback keep it in same PR

small commits are glorious though :)

@mikehardy mikehardy added Pending Merge Things with approval that are waiting future merge (e.g. targets a future release, CI wait, etc) and removed Needs Second Approval Has one approval, one more approval to merge Blocked by dependency Currently blocked by some other dependent / related change labels Apr 19, 2026
@mikehardy mikehardy added this pull request to the merge queue Apr 19, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Apr 19, 2026
@mikehardy
Copy link
Copy Markdown
Member

I am aware of the reason for the conflict since I just reviewed the PR that caused it, I'm pulling this locally for fixup+validation and will repush if it passes

good checkpoint anyway as it'll be tested locally rebased to main and I've merged quite a few PRs, I want to run local validation periodically with rebases anyway...

@mikehardy
Copy link
Copy Markdown
Member

indeed - was the hunk I was pretty sure would collide, trivial resolution, local verification working now

@mikehardy mikehardy force-pushed the mp/profile-name-validation branch from a909e35 to 6fb5daa Compare April 19, 2026 16:49
@mikehardy mikehardy enabled auto-merge April 19, 2026 16:51
@mikehardy mikehardy added this pull request to the merge queue Apr 19, 2026
Merged via the queue into ankidroid:main with commit 6f7146e Apr 19, 2026
15 checks passed
@github-actions github-actions bot added this to the 2.24 release milestone Apr 19, 2026
@github-actions github-actions bot removed the Pending Merge Things with approval that are waiting future merge (e.g. targets a future release, CI wait, etc) label Apr 19, 2026
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