SuccessChanges

Summary

  1. tsk43: Refactors story exploration to integrate reusable pagination (details)
  2. tsk59: Implements story creation and update in service layer (details)
  3. tsk39: Integrates advanced pagination and search improvements for (details)
Commit f76f401fdca79bf9e149ab2b66869d1a759dc6f2 by devpablogg
tsk43: Refactors story exploration to integrate reusable pagination
logic
Replaces custom pagination with a shared `Paginated` class to centralize
functionality. Updates `ExploreBean` and `Explore.xhtml` to streamline
navigation, enhance maintainability, and correct typographical errors in
`availableGenres` and `availableThemes`. Creates method in service to
count the number of filtered stories and adds tests to it.
The file was modifiedjsf/src/main/java/es/uvigo/esei/microstories/jsf/ExploreBean.java (diff)
The file was modifiedservice/src/test/java/es/uvigo/esei/microstories/services/StoryServiceIntegrationTest.java (diff)
The file was modifiedjsf/src/main/webapp/story/explore.xhtml (diff)
The file was modifiedjsf/src/main/java/es/uvigo/esei/microstories/jsf/pagination/Paginated.java (diff)
Commit 9c9f284f27e50c1133da185222a2aedf319ce900 by devpablogg
tsk59: Implements story creation and update in service layer
This commit adds full support for creating and updating stories. It
introduces
`StoryCreateDto`, implements creation and update flows in
`StoryService`, and applies permission checks using the security role
caller for CREATOR actions. A new `UserService` is added to resolve the
current user. The `Story` entity now supports relaxed nullability for
drafts, immutability after publication, theme and text validations, and
a new `isComplete` method. The database schema is updated to match these
rules. The `StoryMapper` is adjusted for the updated entity constructor.
Comprehensive unit and integration tests verify creation, updating,
validation behavior, and authorization handling.
The file was modifiedservice/src/test/java/es/uvigo/esei/microstories/services/StoryServiceIntegrationTest.java (diff)
The file was addedservice/src/main/java/es/uvigo/esei/microstories/services/UserService.java (diff)
The file was addedtests/src/main/java/es/uvigo/esei/dgss/teama/microstories/service/util/security/CreatorRoleCaller.java (diff)
The file was addedservice/src/main/java/es/uvigo/esei/microstories/dtos/StoryCreateDto.java (diff)
The file was modifiedservice/src/main/java/es/uvigo/esei/microstories/services/StoryService.java (diff)
The file was modifiedadditional-material/db/microstories-mysql.full.sql (diff)
The file was modifieddomain/src/main/java/es/uvigo/esei/microstories/domain/entities/Story.java (diff)
The file was modifiedservice/src/main/java/es/uvigo/esei/microstories/mappers/StoryMapper.java (diff)
The file was modifiedadditional-material/db/microstories-mysql.creation.sql (diff)
The file was modifieddomain/src/test/java/es/uvigo/esei/microstories/domain/entities/StoryTest.java (diff)
The file was modifiedtests/src/main/resources/datasets/stories.xml (diff)
The file was modifiedservice/src/test/resources/beans.xml (diff)
Commit f6ca7fae65d71ac87798a6aaa92945a2ff199580 by devpablogg
tsk39: Integrates advanced pagination and search improvements for
stories
Refactors `StoryManagedBean` to use a reusable `Paginated` class,
centralizing pagination logic. Enhances `search.xhtml` with dynamic page
size, navigation controls, and updated search result display. Updates
`StoryService` to add counts for published and filtered stories,
alongside improved query logic. Adds and updates related tests.
The file was modifiedservice/src/main/java/es/uvigo/esei/microstories/services/StoryService.java (diff)
The file was modifiedjsf/src/main/webapp/story/search.xhtml (diff)
The file was modifiedjsf/src/main/java/es/uvigo/esei/microstories/jsf/StoryManagedBean.java (diff)
The file was modifiedservice/src/test/java/es/uvigo/esei/microstories/services/StoryServiceIntegrationTest.java (diff)