Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(VDiskPage): fix evict action #1817

Merged
merged 1 commit into from
Jan 13, 2025
Merged

fix(VDiskPage): fix evict action #1817

merged 1 commit into from
Jan 13, 2025

Conversation

artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Jan 13, 2025

Closes #1815

Issue for further improvements (tests): #1816

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
262 261 0 1 0

😟 No changes in tests. 😕

Bundle Size: ✅

Current: 66.14 MB | Main: 66.14 MB
Diff: +0.25 KB (0.00%)

✅ Bundle size unchanged.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • 📊 indicates links to detailed reports.
  • 🔺 indicates increase, 🔽 decrease, and ✅ no change in bundle size.

Comment on lines -73 to -75
return (
newDiskApiAvailable ? window.api.vdisk.evictVDisk : window.api.tablets.evictVDiskOld
)({
Copy link
Member Author

@artemmufazalov artemmufazalov Jan 13, 2025

Choose a reason for hiding this comment

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

In such construction this is lost, so this.post inside functions doesn't work.

How it should be done in such case (adding bind):

newDiskApiAvailable ? 
    window.api.vdisk.evictVDisk.bind(window.api.vdisk) :
    window.api.tablets.evictVDiskOld.bind(window.api.tablets)

I rewritten this part so it should work and be readable

@artemmufazalov artemmufazalov added this pull request to the merge queue Jan 13, 2025
@astandrik astandrik requested a review from Copilot January 13, 2025 12:50

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/containers/VDiskPage/VDiskPage.tsx:93

  • [nitpick] The error message 'statusText: response.error' might be unclear. Consider providing a more descriptive error message.
statusText: response.error,
Merged via the queue into main with commit 3312ae2 Jan 13, 2025
7 checks passed
@artemmufazalov artemmufazalov deleted the 1815-vdisk-evict branch January 13, 2025 12:54
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.

Cannot evict VDisk
2 participants