-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[backend] Set default category if none is provided
The default category is now set to the first category listed in the backend's `CATEGORIES` list. This change is necessary to accommodate the removal of backend-specific `fetch` methods, which previously handled category assignment. Updated the tests to validate the default and specific category assignments, and removed the obsolete `test_fetch_archive_needs_category`. Signed-off-by: Venu Vardhan Reddy Tekula <[email protected]>
- Loading branch information
Showing
4 changed files
with
23 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ Valerio Cosentino <[email protected]> | |
Jose Javier Merchante <[email protected]> | ||
Chris Burgess <[email protected]> | ||
devpod.cn <[email protected]> | ||
Venu Vardhan Reddy Tekula <[email protected]> | ||
Venu Vardhan Reddy Tekula <[email protected]> | ||
Matt Gaughan <[email protected]> | ||
|
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,13 @@ | ||
--- | ||
title: Refactor Backend Fetch Logic | ||
category: other | ||
author: Venu Vardhan Reddy Tekula <[email protected]> | ||
issue: 527 | ||
notes: > | ||
Refactored the `Backend` class to simplify and improve maintainability. | ||
The `fetch` method is no longer overridden in subclasses. Instead, | ||
subclasses are only required to implement the `fetch_items` method, where | ||
the specific data retrieval logic is defined. This change ensures that any | ||
updates to the `fetch` method in the `Backend` class are automatically | ||
inherited by all subclasses, reducing the need to propagate changes across | ||
multiple classes. |
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