-
Notifications
You must be signed in to change notification settings - Fork 4
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 rentable_by filter #1204
add rentable_by filter #1204
Conversation
…by a twin id or nodes available to rent.
grid-proxy/pkg/types/nodes.go
Outdated
@@ -141,7 +141,8 @@ type NodeFilter struct { | |||
OwnedBy *uint64 `schema:"owned_by,omitempty"` | |||
Rented *bool `schema:"rented,omitempty"` | |||
RentedBy *uint64 `schema:"rented_by,omitempty"` | |||
AvailableFor *uint64 `schema:"available_for,omitempty"` | |||
RentableBy *uint64 `schema:"rentable_by,omitempty"` // rented by twin or rentable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RentedBy instead of RentableBy no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rentedby
is already a functional filter returns all the nodes rented by a specific twin.
rentableby
is a new filter that should return all the nodes rented by a specific twin + all the nodes available to rent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rentedby
is already a functional filter returns all the nodes rented by a specific twin.
rentableby
is a new filter that should return all the nodes rented by a specific twin + all the nodes available to rent. somehow combining rentable
and rentedby
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is that different from AvailableFor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
available_for
returns the nodes rented by a twin id + the shared nodes. (available to deploy on)
rentable_for
returns the nodes rented by a twin id + the rentable nodes. (rented or available to rent)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tb bos :D let's make it rentable_or_rented_by :D
Checklist