Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • VIR - frontend VIR - frontend
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 16
    • Issues 16
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • VIR - Visual Interactive Reading
  • VIR - frontendVIR - frontend
  • Issues
  • #10

Closed (moved)
(moved)
Open
Created Sep 14, 2024 by Luiz Felipe Porto Lara De Oliveira@luiz.oliveiraMaintainer4 of 7 tasks completed4/7 tasks

Sprint 2 | Admin | Book C.R.U.D | ZIP GIF Processing & Upload

To-Do:

  • Implement an endpoint to receive a zip file containing GIFs
  • Validate the zip file format upon upload
  • Receive from controller the books name and other relevant information
  • Check if the book related to the GIFs already exists in the database
  • If the book exists, update all gifs to the current list
  • Handle invalid or corrupted zip files
  • Return appropriate error messages for invalid uploads or books not found

Feature: Upload and process GIFs for a book

The service receives a zip file containing GIFs related to a book, which are processed and stored in the database.
The system validates whether the book exists before adding or updating GIFs in bulk.


Scenario: Upload zip file for an existing book

Given a valid zip file containing GIFs for an existing book is sent to the upload endpoint
When the zip file is uploaded to the service
Then the service should extract the metadata to identify the book
And check if the book exists in the database
And if the book exists, the service should send to the repository to update all gifs related to


Scenario: Upload zip file for a new book

Given a valid zip file containing GIFs for a new book is sent to the upload endpoint
When the zip file is uploaded to the service
Then the service should extract the metadata to identify the book
And if the book does not exist in the database, it should be added
And all associated GIFs are stored in the database for the new book


Scenario: Upload zip file for a non-existent book

Given a zip file for a non-existent or invalid book is sent to the upload endpoint
When the zip file is uploaded to the service
Then the service should return an error response indicating the book was not found in the system


Scenario: Upload invalid or corrupted zip file

Given an invalid or corrupted zip file is sent to the upload endpoint
When the file is uploaded to the service
Then the service should return an error response indicating the zip file could not be processed

Edited Oct 11, 2024 by Luiz Felipe Porto Lara De Oliveira
Assignee
Assign to
Time tracking