Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

batches: use String.replaceAll to substitute spaces on batch change name input#51071

Merged
courier-new merged 1 commit into
mainfrom
kr/fix-replace-all
Apr 25, 2023
Merged

batches: use String.replaceAll to substitute spaces on batch change name input#51071
courier-new merged 1 commit into
mainfrom
kr/fix-replace-all

Conversation

@courier-new

Copy link
Copy Markdown
Contributor

Follow up to https://github.com/sourcegraph/sourcegraph/pull/50825/files?w=1#r1175947173. This makes sure we replace all spaces that occur in the new name input value, not just the first occurrence, for example if the user copy+pastes all or part of the batch change name.

Test plan

Manually tested.

@courier-new courier-new added the batch-changes Issues related to Batch Changes label Apr 25, 2023
@courier-new courier-new requested a review from a team April 25, 2023 02:22
@courier-new courier-new self-assigned this Apr 25, 2023
@cla-bot cla-bot Bot added the cla-signed label Apr 25, 2023
@sourcegraph-bot

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff ebeeb11...403df93.

Notify File(s)
@BolajiOlajide client/web/src/enterprise/batches/create/ConfigurationForm.tsx
@eseliger client/web/src/enterprise/batches/create/ConfigurationForm.tsx

@sg-e2e-regression-test-bob

Copy link
Copy Markdown

Bundle size report 📦

Initial size Total size Async size Modules
0.00% (0.00 kb) -0.00% (-0.02 kb) -0.00% (-0.02 kb) 0.00% (0)

Look at the Statoscope report for a full comparison between the commits 403df93 and ebeeb11 or learn more.

Open explanation
  • Initial size is the size of the initial bundle (the one that is loaded when you open the page)
  • Total size is the size of the initial bundle + all the async loaded chunks
  • Async size is the size of all the async loaded chunks
  • Modules is the number of modules in the initial bundle

@st0nebreaker st0nebreaker left a comment

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.

Good catch! I spaced on this case in implementation

@courier-new

Copy link
Copy Markdown
Contributor Author

I spaced on this case in implementation

Yeah you should have dashed on it. 😜

@courier-new courier-new merged commit 8f666a8 into main Apr 25, 2023
@courier-new courier-new deleted the kr/fix-replace-all branch April 25, 2023 22:57
@st0nebreaker

Copy link
Copy Markdown
Contributor

I spaced on this case in implementation

Yeah you should have dashed on it. 😜

Lol the pun gun is out ! 🔫

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

batch-changes Issues related to Batch Changes cla-signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants