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

feat(staking): [LW-7508] add un-delegation functionality #634

Conversation

xdzurman
Copy link
Contributor

@xdzurman xdzurman commented Oct 11, 2023

Checklist

  • JIRA - <link>
  • Proper tests implemented
  • Screenshots added.

Proposed solution

Always allow removing pools from preferences drawer. If the last pool was removed, render the sad smiley content. I chose the easier alternative to get this out quick - i.e., you can remove pools not just in overview Management drawer, but also in Browse pools to not complicate the code. Also adjusted the result screen (see screenshots).

Testing

Manage current portfolio > Remove all pools > continue, sign the transaction

Screenshots

image
image
image
image


Allure report

allure-report-publisher generated test report!

smokeTests: ✅ test report for 430d524c

passed failed skipped flaky total result
Total 31 0 0 0 31

@xdzurman xdzurman self-assigned this Oct 11, 2023
@xdzurman xdzurman requested a review from a team as a code owner October 11, 2023 09:21
@github-actions github-actions bot added the staking Changes to the staking package. label Oct 11, 2023
Copy link
Contributor

@refi93 refi93 left a comment

Choose a reason for hiding this comment

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

only minor suggestions, other than that LGTM

Copy link
Contributor

@szymonmaslowski szymonmaslowski left a comment

Choose a reason for hiding this comment

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

Just a few minor nitpicks. Approving already 😉

Copy link
Contributor

@przemyslaw-wlodek przemyslaw-wlodek left a comment

Choose a reason for hiding this comment

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

Sorry, I wanted to approve 😄 These are just a couple of minor improvements that can be done.

Base automatically changed from feat/LW-8510-delegation-portfolio-store-adjustments to main October 31, 2023 07:52
@xdzurman xdzurman force-pushed the feat/LW-7508-Removing-all-pools-results-in-unstaking-all-funds branch from cc7308a to 430d524 Compare November 3, 2023 07:05
@xdzurman
Copy link
Contributor Author

xdzurman commented Nov 6, 2023

Blocked by a bug in js sdk - https://input-output.atlassian.net/browse/LW-8993

Once a new sdk version is released - update sdk in lace, test and merge this, no further code edits needed

Copy link

sonarcloud bot commented Nov 16, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
3.8% 3.8% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

Copy link

github-actions bot commented Nov 16, 2023

Allure report

allure-report-publisher generated test report!

smokeTests: ✅ test report for 8cadf68e

passed failed skipped flaky total result
Total 32 0 0 0 32

Copy link
Contributor

@ljagiela ljagiela left a comment

Choose a reason for hiding this comment

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

My issues described in Jira.

@pczeglik-iohk pczeglik-iohk force-pushed the feat/LW-7508-Removing-all-pools-results-in-unstaking-all-funds branch from c45a62d to 3cab8ca Compare February 23, 2024 09:49
@xdzurman xdzurman requested a review from a team as a code owner February 23, 2024 09:49
@pczeglik-iohk pczeglik-iohk force-pushed the feat/LW-7508-Removing-all-pools-results-in-unstaking-all-funds branch from e3b8a60 to 0b9494a Compare February 23, 2024 10:42
@coveralls
Copy link

coveralls commented Feb 23, 2024

Coverage Status

Changes unknown
when pulling 8cadf68 on feat/LW-7508-Removing-all-pools-results-in-unstaking-all-funds
into ** on main**.

@pczeglik-iohk pczeglik-iohk force-pushed the feat/LW-7508-Removing-all-pools-results-in-unstaking-all-funds branch from 22b90f3 to 4eed6a2 Compare February 23, 2024 12:03
@pczeglik-iohk pczeglik-iohk force-pushed the feat/LW-7508-Removing-all-pools-results-in-unstaking-all-funds branch from 4eed6a2 to 8cadf68 Compare February 26, 2024 10:37
Copy link

sonarcloud bot commented Feb 26, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
3.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@mkazlauskas mkazlauskas merged commit bda9570 into main Feb 29, 2024
8 of 11 checks passed
@mkazlauskas mkazlauskas deleted the feat/LW-7508-Removing-all-pools-results-in-unstaking-all-funds branch February 29, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staking Changes to the staking package.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants