Commit graph

505 commits

Author SHA1 Message Date
Denis Fuenzalida
f9399b7a9f Fix typo in visits form which caused button to miss its text
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 1s
Java CI with Maven / build (17) (push) Failing after 1s
Signed-off-by: Denis Fuenzalida <denis.fuenzalida@gmail.com>
2025-06-14 07:45:06 +01:00
Patrick Baumgartner
cefaf55dd1 Downgrading to mysql 9.2
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 1s
Java CI with Maven / build (17) (push) Failing after 1s
Deploy and Test Cluster / deploy-and-test-cluster (push) Successful in 1m39s
- MySQL 9.3 does not work with testcontainers 1.21.0. Database container terminates with errors

Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
2e61f19c66 Updated Copyright to year 2025
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
47dfd4f388 Cleanup Java Classes
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
142321aa3e Extracted findPetTypes
- Extracted find by findPetTypes because of failing tests
- Extracting helped to keep one repository responsible for an entity type
- Seems like Spring Data is more strict and treats PetType as DTO and generated a Costructor NEW query
- Current approach treats it still like an entity

Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
b21890c126 Aligned postgres properties with mysql properties
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
d44ad42886 Upgrading to Spring Boot 3.5
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
4a021e4ccf Upgraded databases
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
af8645561b Cleanup HTML files
- Fixed broken paging and aligned vetList and OwnersList
- Adding Doctype for consistency
- Removed html5shim and respond for IE < 9
- Reformatting HTML

Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Antoine Rey
3a931080d4 Remove unused findAll method from OwnerRepository and related test setup
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 2s
Java CI with Maven / build (17) (push) Failing after 1s
Signed-off-by: Antoine Rey <antoine.rey@free.fr>
2025-05-14 09:20:26 +01:00
anizmo
c5af32d5a1 Internationalization Enhancement
Some checks failed
Java CI with Maven / build (17) (push) Failing after 1s
Java CI with Gradle / build (17) (push) Failing after 7s
- Added test to ensure there are no string literals
- Added test to ensure a string is translated in all language files
- Added missing strings in properties
- Internationalized remaining strings flagged by the tests

Signed-off-by: anizmo <potdar.anuj@gmail.com>
2025-05-06 13:55:19 +01:00
anizmo
0c88f916db Adding strings for all other languages
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 1s
Java CI with Maven / build (17) (push) Failing after 2s
- Added WebConfiguration class to change language using url param
- Added text from messages to html files wherever required
- Added String to all other languages

Closes #1854

Signed-off-by: anizmo <potdar.anuj@gmail.com>
2025-04-22 09:35:23 +01:00
Antoine Rey
d7cc02f3d7 Use the java.util List.of() instead of the AssetJ Lists class
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 8s
Java CI with Maven / build (17) (push) Failing after 2s
Signed-off-by: Antoine Rey <antoine.rey@free.fr>
2025-03-26 08:52:01 +00:00
Antoine Rey
fceca7754a Associating a <label> with a form control
Signed-off-by: Antoine Rey <antoine.rey@free.fr>
2025-03-26 08:51:24 +00:00
Antoine Rey
7f1af268ec Remove unnecessary @Autowired annotation from the PetTypeFormatter
Signed-off-by: Antoine Rey <antoine.rey@free.fr>
2025-03-26 08:51:00 +00:00
VishantOwO
2aa53f929d Fix pet update functionality
- Fixed issue where editing a pet's type or name wasn't persisting
- Updated processUpdateForm to modify existing pet instead of
  adding new one
- Added proper handling of existing pet update

Fixes #1752
2025-03-01 15:29:15 +00:00
Dave Syer
aa2273e955 Make sure MySQL test app works
Some checks failed
Java CI with Gradle / build (17) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
2025-02-04 09:15:54 +00:00
Antoine Rey
73d73609b5 Use Java Streams to sort the Specialty objects by their name
Signed-off-by: Antoine Rey <antoine.rey@free.fr>
2025-02-04 08:09:03 +00:00
Antoine Rey
b46b97a3e7 Remove unused Transactional import
Signed-off-by: Antoine Rey <antoine.rey@free.fr>
2025-02-04 08:07:44 +00:00
Antoine Rey
6148ddd967 Uses the date property of the Visit entity
Some checks failed
Java CI with Gradle / build (17) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
2024-12-17 16:09:29 +00:00
feelgood1987
22caee3d03 feat: add Persian and Turkish localization files for application messages 2024-12-04 12:47:27 +00:00
Dave Syer
3b90fac983 Fix occasional stale volume in postgres tests
Fixes #1522
2024-11-28 14:40:54 +00:00
YiXuan Ding
40a41375e6 Add new test file
-<modify>: remove `@Transactional`.
-<add>: create unit-test file related to `PetValidator`.
-<refactor>: move pet objects initialization to `@BeforeEach` setup.
2024-11-28 09:52:29 +00:00
YiXuan Ding
214a8fb87f <fix>: rename the DI variable name in constructor. 2024-11-28 09:51:42 +00:00
Patrick Baumgartner
a0ba075bd8 Futher updates for Spring Boot 3.4 2024-11-27 11:24:18 +00:00
Dave Syer
91f55a4f71 Versionless webjars (again)
Spring Boot 3.4 supports the webjars-locator-lite which in turn
supports native images, so we are back to versionless URLs for
webjars assets in templates.
2024-11-27 08:32:35 +00:00
YiXuan Ding
1cad4124b7 Refactor code logic
<refactor>: remove useless logic cod.
<refactor>: detele useless annotation which is provided by Jpa.
<refactor>: refactor implement of `findByLastName`, use Jpa to simplify query.
2024-11-11 17:55:34 +00:00
YiXuan Ding
668629d5bd refactor OwnerRepository:
-<replace>: use `JpaRepository` to replace `Repository` in `OwnerRepository` class.
-<remove1>: remove `save()` method. JpaRepository provides it by default.
-<remove2>: remove `@Query` because in `Owner` class, the `@OneToMany` annotiation achieved `fetch` in query.
-<refactor1>: use `Optional<Owner>` to recieve the result from `findById()`, and if is null, throw `IllegalArugmentExpection`.
-<refactor2>: achieve the assert to judge return value in tests.
-<add>: add name to `@author` tag.
2024-11-10 09:14:42 +00:00
YiXuan Ding
50866def72 Refactor the logic and add unit test
-<add>: add `@NotBlank` validation to pet's name.
-<refactor>: delete useless code and add unit test to check duplicate Pet name validation logic.
-<modify>: add `Id` to pet in unit test.
-<refactor>: classify unit test.

<modify>: adjust code format.
2024-11-07 22:34:46 +08:00
YiXuan Ding
14af47d4e5 Refactor:
- <optimize>: delete logic `add owner to model` because of the comment `@ModelAttribute("owner")`.
- <fix>: add logical judgment in ordet to avoid `owner` from `form` and `ownerId` from `url` mismatch.
2024-11-06 18:46:58 +00:00
YiXuan Ding
fdc40a7048 Fix harmless bugs.
- <fix>: use `equals` to replace `==` to compare `Integer` variable.
- <delete>: remove redundant 'toLowerCase()' method and simplify pet lookup logic.
- <update>: rewrite method `getName()` comments.
2024-11-05 16:31:25 +00:00
Patrick Baumgartner
a50bfb65bb Update Spring Boot release, adding Gradle build and cleanup
- Update Spring Boot release, Checkstyle, Mysql.
- Formatting pom.xml with sortpom-maven-plugin.
- Rename README to standard file name.
- Adding GitHub Action for Gradle.
2024-11-05 12:56:29 +00:00
João Bertholino
dff45cf70c fix: Temporarily removing accentuation from messages. 2024-11-05 08:27:02 +00:00
João Bertholino
bbb237928f feat: Adds support for the Portuguese language. 2024-10-20 17:25:23 +01:00
ruabooe
912de1648e feat: add russian 2024-10-20 12:08:50 +01:00
Antoine Rey
62dbfa8e9a Remove the unnecessary includeFilters 2024-10-10 07:53:08 +01:00
Mousa Al Bateh
ae1bb8228c Minor code changes are the following:
-Removed unused variables from few files.
-Added null assertions in some tests.
-Removed unnecessary throw exceptions.
2024-10-10 07:50:06 +01:00
Guilherme Soares
fc442120ce fix(jmx): strip spaces before path 2024-09-30 21:42:09 +01:00
Patrick Baumgartner
f8001e0add Change chmod like other files 2024-09-30 21:41:01 +01:00
Patrick Baumgartner
6fffe61b93 Updated db containers, and dependencies 2024-09-30 21:41:01 +01:00
ghost
2daa3993ee Removed unused imports
Made some variables as final
2024-09-24 20:37:48 +01:00
Sébastien Deleuze
d90e284621 Disable JPA Open Session In View
With the current codebase, it does not seems to be
needed anymore, so we disable it to provide better
performances.
2024-09-24 16:05:18 +01:00
Patrick Baumgartner
39cc7e160e Upgrade Dependencies 2024-05-25 17:00:35 +01:00
Pedro Chevallier
405cdc635b Add user friendly error message 2024-05-16 17:59:59 +01:00
minsungoh
c7bc8b1ae6 fix typo in confirmation message 2024-05-16 17:57:32 +01:00
Dave Syer
c0bc917426 Formatting 2024-05-16 15:23:56 +01:00
akan.tileubergenov
bf3bc29e56 Fix postgres data 2024-05-16 14:09:10 +01:00
Alex
395356afc6 remove leading spaces in /owners//pets//visits/new, /owners//pets//visits/new and /webjars/bootstrap/5.3.2/dist/js/bootstrap.bundle.min.js resulting in 404s 2024-05-16 13:35:22 +01:00
Anyul Rivas
8f799263e0 test: remove duplicate assertion 2024-05-16 13:30:35 +01:00
Anyul Rivas
19f5268ac1 test: improve test readability 2024-05-16 13:30:35 +01:00