Skip to content

Commit

Permalink
Add additional warning for sending empty filters in q param
Browse files Browse the repository at this point in the history
  • Loading branch information
hahmed-dev committed Aug 15, 2024
1 parent c218fc2 commit d92efc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -21325,7 +21325,7 @@
}
},
{
"description": "Specify a query to do broad search for keys by name (including wildcards).<br><br>\nThe following qualifiers are also supported in the search term:<br>\n<ul>\n <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li>\n <li><code>name:key_name</code> for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes</li>\n <li><code>tags:tag_name</code> to filter for keys with certain tags</li>\n <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li>\n <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li>\n <li><code>unmentioned_in_upload:upload_id</code> to filter keys unmentioned within upload</li>\n</ul>\nFind more examples <a href=\"#overview--usage-examples\">here</a>.\n",
"description": "Specify a query to do broad search for keys by name (including wildcards).<br><br>\nThe following qualifiers are also supported in the search term:<br>\n<ul>\n <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li>\n <li><code>name:key_name</code> for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes. <b>Caution:</b> If an empty value is sent for this filter, all records will be deleted as it is treated as selecting all records. Please ensure a specific value is provided to avoid accidental data loss.</li>\n <li><code>tags:tag_name</code> to filter for keys with certain tags</li>\n <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li>\n <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li>\n <li><code>unmentioned_in_upload:upload_id</code> to filter keys unmentioned within upload</li>\n</ul>\nFind more examples <a href=\"#overview--usage-examples\">here</a>.\n",
"example": "mykey* translated:true",
"name": "q",
"in": "query",
Expand Down
2 changes: 1 addition & 1 deletion paths/keys/destroy-collection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ parameters:
The following qualifiers are also supported in the search term:<br>
<ul>
<li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li>
<li><code>name:key_name</code> for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes</li>
<li><code>name:key_name</code> for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes. <b>Caution:</b> If an empty value is sent for this filter, all records will be deleted as it is treated as selecting all records. Please ensure a specific value is provided to avoid accidental data loss.</li>
<li><code>tags:tag_name</code> to filter for keys with certain tags</li>
<li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li>
<li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li>
Expand Down

0 comments on commit d92efc5

Please sign in to comment.