SuccessChanges

Summary

  1. fix: Removes unused attributes (details)
  2. tsk15 Corrects the methods exploreStories and calculateNumPagesExplore (details)
  3. tsk15 Add more tests for story exploration (details)
  4. tsk34 Fixes getStoriesByUser and calculateNumPagesStoriesByUser methods (details)
  5. fix: Fixes the searchStories and calculateNumPagesSearch methods (details)
  6. fix: Fixes a problem with the number of characters in the explore view (details)
Commit 47de44dcc0f9a4a1a8343fd2e78070b32862082e by ifmarinho
fix: Removes unused attributes
Removes from StoryController attributes that were not being used
The file was modifiedjsf/src/main/java/es/uvigo/esei/dgss/teamB/microstories/jsf/controllers/StoryController.java (diff)
Commit 291bce81958accbbef9426256b93ffa2a614a810 by ifmarinho
tsk15 Corrects the methods exploreStories and calculateNumPagesExplore
Modifies the exploreStories method to use TypedQuery's setMaxResults and
setFirstResults methods when getting the stories corresponding to each
page
Modifies the calculateNumPagesExplore method to use a specific query to
count the number of items (COUNT query)
The file was modifiedservice/src/main/java/es/uvigo/esei/dgss/teamB/microstories/service/StoryService.java (diff)
Commit 04a2c04ec3001020b98c0f1f01332d6be2db2bee by ifmarinho
tsk15 Add more tests for story exploration
Add more tests to check different combinations to obtain the number of
pages according to the options chosen in the filter (genre, topic and
publication)
The file was modifiedservice/src/test/java/es/uvigo/esei/dgss/teamB/microstories/service/StoryServiceTest.java (diff)
The file was modifiedservice/src/main/java/es/uvigo/esei/dgss/teamB/microstories/service/StoryService.java (diff)
Commit 05d29c3b5dd4ea421e7824384feaea06803f06aa by ifmarinho
tsk34 Fixes getStoriesByUser and calculateNumPagesStoriesByUser methods
Modifies the getStoriesByUser method to use TypedQuery's setMaxResults
and setFirstResults methods when getting the corresponding stories for
pagination
Modifies the calculateNumPagesStoriesByUser method to use a specific
query to count the number of items (COUNT query)
The file was modifiedservice/src/main/java/es/uvigo/esei/dgss/teamB/microstories/service/StoryService.java (diff)
Commit f299bb130ffef0ddc03752979a1b15b2e727a6d7 by ifmarinho
fix: Fixes the searchStories and calculateNumPagesSearch methods
Modifies the searchStories method to use TypedQuery's setMaxResults and
setFirstResults methods when retrieving stories taking pagination into
account
Modifies the calculateNumPagesSearch method to use a specific query to
count the number of items (COUNT query)
The file was modifiedservice/src/main/java/es/uvigo/esei/dgss/teamB/microstories/service/StoryService.java (diff)
Commit af6e3385a0f3989ecff4fb277929a590af2e7f7b by ifmarinho
fix: Fixes a problem with the number of characters in the explore view
If the number of characters in a story is less than 60, an error appears
when trying to list stories. To fix this problem a check is added, so
that if the number of characters is less than 60 it shows the full text,
otherwise it limits the text to 60 characters
The file was modifiedjsf/src/main/webapp/exploreStories.xhtml (diff)