Skip to content

IEBH-417: Fixed showing deleted files older than 30 days#11

Merged
mloshakov merged 3 commits intomainfrom
fix/file-folder-deletion-30-days
Feb 6, 2026
Merged

IEBH-417: Fixed showing deleted files older than 30 days#11
mloshakov merged 3 commits intomainfrom
fix/file-folder-deletion-30-days

Conversation

@mloshakov
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a 30-day time window filter to the marked (soft-deleted) items retrieval functionality, ensuring that only items deleted within the last 30 days are returned. This implements a typical "recycle bin" behavior where old deleted items are no longer accessible for recovery.

Changes:

  • Added date filtering to exclude marked items older than 30 days from the query results
  • Imported timedelta and timezone modules to support the date calculation
  • Bumped version from 2.2.13 to 2.2.14

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
pyproject.toml Version bump to 2.2.14
app/routers/v1/items/crud_items.py Added datetime imports and 30-day filter to get_marked_items_by_username function

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

Coverage

Coverage Report
FileStmtsMissCoverMissing
__main__.py040%7, 9, 11–12
api_registry.py00100% 
app_utils.py00100% 
config.py00100% 
logger.py00100% 
main.py0289%46–47
clients
   kafka_client.py02965%36–42, 49–51, 63–65, 72–74, 97–99, 122–129, 137–138
models
   base_models.py00100% 
   models_attribute_templates.py00100% 
   models_collections.py0198%128
   models_favourites.py0197%24
   models_items.py01790%44, 52, 161, 175, 183, 189, 195, 201, 206–210, 213, 217–219
   models_lineage_provenance.py00100% 
   sql_attribute_templates.py00100% 
   sql_collections.py00100% 
   sql_extended.py00100% 
   sql_favourites.py0196%45
   sql_items.py00100% 
   sql_items_collections.py00100% 
   sql_lineage.py0195%40
   sql_provenance.py00100% 
   sql_storage.py00100% 
routers
   router_exceptions.py00100% 
   router_utils.py00100% 
routers/v1/attribute_templates
   api_attribute_templates.py01777%44–46, 56–58, 68–70, 78–82, 94–96
   crud.py0197%65
routers/v1/collections
   api_collections.py03375%60–62, 76–82, 92–94, 108–110, 121, 126–128, 138–140, 148–152, 162–166
   crud_collections.py0595%45, 57, 91–93
   permissions_collections.py0193%26
   utils.py00100% 
routers/v1/favourites
   api_favourites.py01485%53–54, 64–65, 75–76, 87–90, 102–103, 113–114
   crud_favourites.py0792%37–39, 75, 79, 127–128
   utils.py00100% 
routers/v1/health
   api_health.py02250%26–36, 40–47, 60–62
routers/v1/items
   api_items.py07166%69–70, 93–94, 107–112, 122–127, 139–140, 147–154, 160–167, 177–178, 188–191, 201–206, 219, 223–224, 234–235, 242–250, 254–260, 276–279
   api_lineage_provenance.py0290%30–31
   crud_items.py06883%146, 149–151, 160, 163–167, 169–170, 181, 219–220, 229, 236, 238, 242–244, 262, 264, 278, 286, 336, 391–393, 395, 403, 408, 410, 412, 416, 424, 426, 430, 432, 438, 440–442, 522, 526, 556, 558, 572, 574, 620–627, 631–638, 650, 658, 660
   crud_lineage_provenance.py01082%23, 26–32, 43, 58
   dependencies.py0284%20–21
   permissions_items.py0487%42–43, 47, 60
   utils.py0197%55
TOTAL229631486% 

@mloshakov mloshakov merged commit f9c3cd5 into main Feb 6, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant