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

Add rentableOrRentedBy query in dedicated filter #3740

Open
wants to merge 8 commits into
base: development
Choose a base branch
from

Conversation

samaradel
Copy link
Contributor

@samaradel samaradel commented Dec 15, 2024

Description

  • Add rentableOrRentedBy query in the dedicated filter.
  • merging development branch.

Changes

Screencast.from.01-01-25.14.39.41.webm

Tested Scenarios

  • Go to any solution page
  • Toggle on the Dedicated node switch
  • Load Nodes and you'll find the nodes you already rented and the nodes that are available for you to rent

Scenarios Update

  • Rent a node and make sure it's not listed in the free dedicated nodes filter.
  • Unreserve the node and ensure it is back in the free dedicated node filter.
  • Try to deploy on a node not rented by you (should fail with proper error message)

Documentation PR

Related Issues

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstrings
  • Screenshots/Video attached (needed for UI changes)

@samaradel
Copy link
Contributor Author

cpd from #3587

Copy link
Contributor

@0oM4R 0oM4R left a comment

Choose a reason for hiding this comment

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

#3587 (review)
still reproducable
Screenshot from 2024-12-16 11-08-35
Screenshot from 2024-12-16 11-08-21

also there are many unrelated changes please make sure to update the pr

@maayarosama
Copy link
Contributor

Please remove unrelated changes

@samaradel samaradel marked this pull request as ready for review December 29, 2024 10:38
@samaradel samaradel requested a review from 0oM4R December 29, 2024 10:38
@amiraabouhadid
Copy link
Contributor

amiraabouhadid commented Dec 29, 2024

it correctly shows my rented node along with any rentable node in the node selector in deployment
Screenshot from 2024-12-29 13-44-20
however, i can click deploy on a node that isnt rented by me and the error would only be shown after deployment has been initiated
image

shouldn't the error be shown in node selector and deployment prevented if node is not rented by you?

@samaradel samaradel marked this pull request as draft December 30, 2024 16:42
@samaradel samaradel marked this pull request as ready for review January 1, 2025 12:41
@samaradel
Copy link
Contributor Author

@amiraabouhadid fixed, please check the attached video

Copy link
Contributor

@0oM4R 0oM4R left a comment

Choose a reason for hiding this comment

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

I see some files that have unrelated changes; please remove them

@@ -224,6 +224,9 @@ export async function validateRentContract(
}

try {
if (node.dedicated || node.rentedByTwinId === 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i think it should be and
I'm already reting node 151 but got this error
image

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.

4 participants