-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(api) allow to delete APIs and Consumers by name
Cassandra from 3 to 2 during an update and a delete, it removed the possibility of updating and deleting APIs and Consumers by their name, because that change made it so the base_dao's underlying `delete()` and `update()` were directly used instead of first querying the entity. Querying the entity first allowed to retrieve its PRIMARY KEY fields, and hence `delete()` and `update()` never complained. But by removing this initial retrieving, we removed this feature, and **there were not tests** for it! - This adds test for PATCH/DELETE APIs and Consumers by name/username - Adds an argument to the base_dao `update()` and `delete()` to select by any field rather than only the PRIMARY KEY fields.
- Loading branch information
1 parent
32b9945
commit 5feacd1
Showing
3 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -638,4 +638,4 @@ describe("Admin API", function() | |
end) | ||
end) | ||
end) | ||
end) | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters