Skip to content

Commit

Permalink
feat: add sub_feature column in report filters (#576)
Browse files Browse the repository at this point in the history
* feat: add sub_feature column in report filters

* Auto generate API docs

---------

Co-authored-by: Siva <[email protected]>
  • Loading branch information
Aniruddha-Shriwant and snarayanank2 authored Dec 4, 2024
1 parent c2ed4bb commit 733597b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 16 deletions.
4 changes: 4 additions & 0 deletions reference/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5940,6 +5940,8 @@ components:
$ref: '#/components/schemas/user_id'
query_string:
$ref: '#/components/schemas/query_string'
sub_feature:
$ref: '#/components/schemas/sub_feature'
created_at:
$ref: '#/components/schemas/created_at'
updated_at:
Expand All @@ -5957,6 +5959,8 @@ components:
$ref: '#/components/schemas/is_shared'
query_string:
$ref: '#/components/schemas/query_string'
sub_feature:
$ref: '#/components/schemas/sub_feature'
report_filters_delete_in:
type: object
additionalProperties: false
Expand Down
20 changes: 12 additions & 8 deletions reference/approver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2656,6 +2656,14 @@ components:
description: |
This represents a query string which will be used to filter the data.
example: code.eq.'E0101'
sub_feature:
type: string
description: |
This field can be used to setup a collection of filters. For example, if you have multiple filters
for a single page, this can be used as an identifier to fetch all the filters for that page. <br>
**Note: Only combination of alphabets, numbers and _(underscore) is allowed**
nullable: true
example: flagged_expenses
report_filters_out:
type: object
additionalProperties: false
Expand All @@ -2674,6 +2682,8 @@ components:
$ref: '#/components/schemas/user_id'
query_string:
$ref: '#/components/schemas/query_string'
sub_feature:
$ref: '#/components/schemas/sub_feature'
created_at:
$ref: '#/components/schemas/created_at'
updated_at:
Expand All @@ -2691,6 +2701,8 @@ components:
$ref: '#/components/schemas/is_shared'
query_string:
$ref: '#/components/schemas/query_string'
sub_feature:
$ref: '#/components/schemas/sub_feature'
report_filters_delete_in:
type: object
additionalProperties: false
Expand Down Expand Up @@ -3598,14 +3610,6 @@ components:
description: |
This field indicates the sum of amount of expenses that match the criteria specified in the query_params within the body of the request.
example: 100
sub_feature:
type: string
description: |
This field can be used to setup a collection of filters. For example, if you have multiple filters
for a single page, this can be used as an identifier to fetch all the filters for that page. <br>
**Note: Only combination of alphabets, numbers and _(underscore) is allowed**
nullable: true
example: flagged_expenses
expense_filters_out:
type: object
additionalProperties: false
Expand Down
20 changes: 12 additions & 8 deletions reference/spender.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3342,6 +3342,14 @@ components:
description: |
This represents a query string which will be used to filter the data.
example: code.eq.'E0101'
sub_feature:
type: string
description: |
This field can be used to setup a collection of filters. For example, if you have multiple filters
for a single page, this can be used as an identifier to fetch all the filters for that page. <br>
**Note: Only combination of alphabets, numbers and _(underscore) is allowed**
nullable: true
example: flagged_expenses
report_filters_out:
type: object
additionalProperties: false
Expand All @@ -3360,6 +3368,8 @@ components:
$ref: '#/components/schemas/user_id'
query_string:
$ref: '#/components/schemas/query_string'
sub_feature:
$ref: '#/components/schemas/sub_feature'
created_at:
$ref: '#/components/schemas/created_at'
updated_at:
Expand All @@ -3377,6 +3387,8 @@ components:
$ref: '#/components/schemas/is_shared'
query_string:
$ref: '#/components/schemas/query_string'
sub_feature:
$ref: '#/components/schemas/sub_feature'
report_filters_delete_in:
type: object
additionalProperties: false
Expand Down Expand Up @@ -7796,14 +7808,6 @@ components:
description: |
This field indicates the sum of amount of expenses that match the criteria specified in the query_params within the body of the request.
example: 100
sub_feature:
type: string
description: |
This field can be used to setup a collection of filters. For example, if you have multiple filters
for a single page, this can be used as an identifier to fetch all the filters for that page. <br>
**Note: Only combination of alphabets, numbers and _(underscore) is allowed**
nullable: true
example: flagged_expenses
expense_filters_out:
type: object
additionalProperties: false
Expand Down
4 changes: 4 additions & 0 deletions src/components/schemas/report_filters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ report_filters_in:
$ref: './fields.yaml#/is_shared'
query_string:
$ref: './fields.yaml#/query_string'
sub_feature:
$ref: './fields.yaml#/sub_feature'


report_filters_out:
Expand All @@ -31,6 +33,8 @@ report_filters_out:
$ref: './fields.yaml#/user_id'
query_string:
$ref: './fields.yaml#/query_string'
sub_feature:
$ref: './fields.yaml#/sub_feature'
created_at:
$ref: './fields.yaml#/created_at'
updated_at:
Expand Down

0 comments on commit 733597b

Please sign in to comment.