-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: new endpoint
DELETE /api/v1/action-groups/{id}/yesterday
(#154)
# Background ![image](https://github.com/user-attachments/assets/dd1f60d5-c639-4f8e-8ea1-26c37763ea2e) ajktown/ConsistencyGPT#85 ## What's done Implement a new endpoint `DELETE /api/v1/action-groups/{id}/yesterday` ## What are the related PRs? - N/A ## Checklist Before PR Review - [x] The following has been handled: - `Draft` is set for this PR - `Title` is checked - `Background` is filled - `Assignee` is set - `Labels` are set - `Development` is linked if related issue exists ## Checklist (Right Before PR Review Request) - [x] The following has been handled: - Final Operation Check is done - Mobile View Operation Check is done - Make this PR as an open PR - `What's done` is filled & matches to the actual changes ## Checklist (Reviewers) - [x] Review if the following has been handled: - Review Code - `Checklist Before PR Review` is correctly handled - `Checklist (Right Before PR Review Request)` is correctly handled - Check if there are any other missing TODOs (Checklists) that are not yet listed - Check if issue under `Development` is fully handled if exists
- Loading branch information
Showing
6 changed files
with
79 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { BadRequestError } from './index.error' | ||
|
||
/** Thrown when certain data is not acceptable | ||
* @example | ||
* throw new DataNotSelectableError('which', ['today', 'yesterday']) | ||
* => Invalid key [which]: Only acceptable in [today, yesterday] | ||
*/ | ||
export class DataNotSelectableError extends BadRequestError { | ||
constructor(key: string, acceptable: string[]) { | ||
super(`Invalid key [${key}]: Only acceptable in [${acceptable.toString()}]`) // i.e) User email is not present | ||
} | ||
} |
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
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