Commit
f76f401fdca79bf9e149ab2b66869d1a759dc6f2
by devpabloggtsk43: 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.
|
 | jsf/src/main/java/es/uvigo/esei/microstories/jsf/ExploreBean.java (diff) |
 | service/src/test/java/es/uvigo/esei/microstories/services/StoryServiceIntegrationTest.java (diff) |
 | jsf/src/main/webapp/story/explore.xhtml (diff) |
 | jsf/src/main/java/es/uvigo/esei/microstories/jsf/pagination/Paginated.java (diff) |
Commit
9c9f284f27e50c1133da185222a2aedf319ce900
by devpabloggtsk59: 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.
|
 | service/src/main/java/es/uvigo/esei/microstories/services/StoryService.java (diff) |
 | service/src/test/java/es/uvigo/esei/microstories/services/StoryServiceIntegrationTest.java (diff) |
 | service/src/test/resources/beans.xml (diff) |
 | tests/src/main/resources/datasets/stories.xml (diff) |
 | service/src/main/java/es/uvigo/esei/microstories/dtos/StoryCreateDto.java (diff) |
 | service/src/main/java/es/uvigo/esei/microstories/mappers/StoryMapper.java (diff) |
 | tests/src/main/java/es/uvigo/esei/dgss/teama/microstories/service/util/security/CreatorRoleCaller.java (diff) |
 | additional-material/db/microstories-mysql.creation.sql (diff) |
 | domain/src/main/java/es/uvigo/esei/microstories/domain/entities/Story.java (diff) |
 | domain/src/test/java/es/uvigo/esei/microstories/domain/entities/StoryTest.java (diff) |
 | additional-material/db/microstories-mysql.full.sql (diff) |
 | service/src/main/java/es/uvigo/esei/microstories/services/UserService.java (diff) |
Commit
f6ca7fae65d71ac87798a6aaa92945a2ff199580
by devpabloggtsk39: 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.
|
 | jsf/src/main/webapp/story/search.xhtml (diff) |
 | service/src/test/java/es/uvigo/esei/microstories/services/StoryServiceIntegrationTest.java (diff) |
 | service/src/main/java/es/uvigo/esei/microstories/services/StoryService.java (diff) |
 | jsf/src/main/java/es/uvigo/esei/microstories/jsf/StoryManagedBean.java (diff) |