Skip to content

Commit 7e48660

Browse files
fix(apisecurity/tags/list): remove pagination and limit from tags list
1 parent ad4049c commit 7e48660

3 files changed

Lines changed: 4 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
### Breaking:
66

77
### Bug Fixes:
8+
89
- fix(stats): `stats historical` now returns write errors instead of silently swallowing them [#1678](https://github.com/fastly/cli/pull/1678)
910

1011
### Enhancements:
12+
1113
- feat(stats): add `--field` flag to `stats historical` to filter to a single stats field. [#1678](https://github.com/fastly/cli/pull/1678)
1214
- feat(stats): add `stats aggregate` subcommand for cross-service aggregated stats. [#1678](https://github.com/fastly/cli/pull/1678)
1315
- feat(stats): add `stats usage` subcommand for bandwidth/request usage, with `--by-service` breakdown. [#1678](https://github.com/fastly/cli/pull/1678)
@@ -19,6 +21,7 @@
1921
- feat(service/version): add support for service validation. [#1695](https://github.com/fastly/cli/pull/1695)
2022

2123
### Dependencies:
24+
2225
- build(deps): `golang.org/x/net` from 0.50.0 to 0.51.0 ([#1674](https://github.com/fastly/cli/pull/1674))
2326
- build(deps): `actions/upload-artifact` from 6 to 7 ([#1675](https://github.com/fastly/cli/pull/1675))
2427
- build(deps): `actions/download-artifact` from 7 to 8 ([#1675](https://github.com/fastly/cli/pull/1675))

pkg/commands/apisecurity/tags/list.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ type ListCommand struct {
2020

2121
// Required.
2222
serviceName argparser.OptionalServiceNameID
23-
24-
// Optional.
25-
limit argparser.OptionalInt
26-
page argparser.OptionalInt
2723
}
2824

2925
// NewListCommand returns a usable command registered under the parent.
@@ -48,8 +44,6 @@ func NewListCommand(parent argparser.Registerer, g *global.Data) *ListCommand {
4844
Description: argparser.FlagServiceNameDesc,
4945
Dst: &c.serviceName.Value,
5046
})
51-
c.CmdClause.Flag("limit", "Maximum number of tags to return per page").Action(c.limit.Set).IntVar(&c.limit.Value)
52-
c.CmdClause.Flag("page", "Page number to return").Action(c.page.Set).IntVar(&c.page.Value)
5347
c.RegisterFlagBool(c.JSONFlag())
5448

5549
return &c
@@ -82,13 +76,6 @@ func (c *ListCommand) Exec(_ io.Reader, out io.Writer) error {
8276
ServiceID: &serviceID,
8377
}
8478

85-
if c.limit.WasSet {
86-
input.Limit = &c.limit.Value
87-
}
88-
if c.page.WasSet {
89-
input.Page = &c.page.Value
90-
}
91-
9279
tags, err := operations.ListTags(context.TODO(), fc, input)
9380
if err != nil {
9481
c.Globals.ErrLog.Add(err)

pkg/commands/apisecurity/tags/tags_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ func TestTagsList(t *testing.T) {
312312
},
313313
{
314314
Name: "validate API success with pagination",
315-
Args: fmt.Sprintf("--service-id %s --limit 10 --page 2", serviceID),
315+
Args: fmt.Sprintf("--service-id %s", serviceID),
316316
Client: &http.Client{
317317
Transport: &testutil.MockRoundTripper{
318318
Response: &http.Response{

0 commit comments

Comments
 (0)