Skip to content

Commit

Permalink
Merge pull request #1208 from threefoldtech/development_release_0.15.17
Browse files Browse the repository at this point in the history
update changelog/chart version
  • Loading branch information
Omarabdul3ziz authored Sep 24, 2024
2 parents 59074c4 + 52b1cb2 commit 7a01099
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 10 deletions.
12 changes: 9 additions & 3 deletions grid-proxy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@

Check `/version` on any instance to know the version.

## Projects
## Releases

### 3.13
### v0.15.17

## Releases
---

- `fix` null consumption for twins doesn't contain contracts.
- `feat` add `rentable_or_rented_by` filter on nodes endpoint.
- `feat` add `free_farm_ips` field on node response.
- `feat` allow sorting by total/free/used ips on farm endpoint.
- `feat` add new `public_ips` endpoint.

### v0.15.14

Expand Down
2 changes: 1 addition & 1 deletion grid-proxy/charts/gridproxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ version: 1.0.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 0.15.14
appVersion: 0.15.17

# make sure to update the changelog with the changes in this release
8 changes: 7 additions & 1 deletion grid-proxy/docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion grid-proxy/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@
{
"type": "integer",
"description": "rented by a twin id or available to rent",
"name": "rentable_by",
"name": "rentable_or_rented_by",
"in": "query"
},
{
Expand Down Expand Up @@ -1823,6 +1823,9 @@
"farmName": {
"type": "string"
},
"farm_free_ips": {
"type": "integer"
},
"farmingPolicyId": {
"type": "integer"
},
Expand Down Expand Up @@ -2018,6 +2021,9 @@
"farmName": {
"type": "string"
},
"farm_free_ips": {
"type": "integer"
},
"farmingPolicyId": {
"type": "integer"
},
Expand Down
6 changes: 5 additions & 1 deletion grid-proxy/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ definitions:
$ref: '#/definitions/types.Dmi'
extraFee:
type: integer
farm_free_ips:
type: integer
farmId:
type: integer
farmName:
Expand Down Expand Up @@ -277,6 +279,8 @@ definitions:
$ref: '#/definitions/types.Dmi'
extraFee:
type: integer
farm_free_ips:
type: integer
farmId:
type: integer
farmName:
Expand Down Expand Up @@ -1199,7 +1203,7 @@ paths:
type: integer
- description: rented by a twin id or available to rent
in: query
name: rentable_by
name: rentable_or_rented_by
type: integer
- description: List of farms separated by comma to fetch nodes from (e.g. '1,2,3')
in: query
Expand Down
2 changes: 1 addition & 1 deletion grid-proxy/internal/explorer/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (a *App) getStats(r *http.Request) (interface{}, mw.Response) {
// @Param rented query bool false "Set to true to filter rented nodes"
// @Param rented_by query int false "rented by twin id"
// @Param available_for query int false "available for twin id"
// @Param rentable_by query int false "rented by a twin id or available to rent"
// @Param rentable_or_rented_by query int false "rented by a twin id or available to rent"
// @Param farm_ids query string false "List of farms separated by comma to fetch nodes from (e.g. '1,2,3')"
// @Param certification_type query string false "certificate type" Enums(Certified, DIY)
// @Param has_gpu query bool false "filter nodes on whether they have GPU support or not"
Expand Down
4 changes: 2 additions & 2 deletions grid-proxy/pkg/types/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ type NodeFilter struct {
OwnedBy *uint64 `schema:"owned_by,omitempty"`
Rented *bool `schema:"rented,omitempty"`
RentedBy *uint64 `schema:"rented_by,omitempty"`
RentableOrRentedBy *uint64 `schema:"rentable_by,omitempty"` // rented by twin or rentable
AvailableFor *uint64 `schema:"available_for,omitempty"` // rented by twin or free
RentableOrRentedBy *uint64 `schema:"rentable_or_rented_by,omitempty"` // rented by twin or rentable
AvailableFor *uint64 `schema:"available_for,omitempty"` // rented by twin or free
NodeID *uint64 `schema:"node_id,omitempty"`
NodeIDs []uint64 `schema:"node_ids,omitempty"`
TwinID *uint64 `schema:"twin_id,omitempty"`
Expand Down

0 comments on commit 7a01099

Please sign in to comment.