Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bsapp 870 #270

Open
wants to merge 878 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
878 commits
Select commit Hold shift + click to select a range
0b7e47a
Rename SQL to V27_0_alter_sequences_value_to_highest_ids.sql
gekelerJulius Jun 8, 2021
0bbe17b
Merge branch 'develop' into groupbranch-forgottensemicolon
Alexander-Nuding Jun 8, 2021
ed09d47
Revert "Update with commits from develop (#292)" (#296)
gekelerJulius Jun 8, 2021
955f07c
Pull commits from develop (#294)
gekelerJulius Jun 8, 2021
46bae7c
Merge pull request #297 from exxcellent/develop
TobiasBraunHSR Jun 8, 2021
0e33fd0
Merge branch 'groupbranch-forgottensemicolon' into BSAPP-911
TobiasBraunHSR Jun 8, 2021
8e3056a
Merge pull request #283 from exxcellent/BSAPP-911
TobiasBraunHSR Jun 8, 2021
5fbe922
BSAPP-899 implemented and removed sq_Benutzer_Id changes from V27_0__…
gekelerJulius Jun 8, 2021
0a6971e
Hab ein TODO übersehen, was einen Codesmell produziert hätte. Habe es…
MaxWeise Jun 8, 2021
2743885
Create V23_0__update_veranstaltung_testdaten.sql
MarioaAk Jun 8, 2021
1541d6d
-UserProfileComponentImpl changed to match the architecture.
Emanuel-Inf Jun 8, 2021
e3d8c31
Merge pull request #289 from exxcellent/BSAPP-807
Emanuel-Inf Jun 8, 2021
475b9b3
Merge pull request #280 from exxcellent/BSAPP-806
Emanuel-Inf Jun 8, 2021
8e348ca
-Fixed CodeSmell. Unused Import.
Emanuel-Inf Jun 8, 2021
9b52e38
Merge pull request #298 from exxcellent/develop
jschaenz Jun 8, 2021
9f84209
Merge pull request #288 from exxcellent/BSAPP-808
lisa-tochtermann Jun 8, 2021
89047a4
Behebung von kompatibilitätsproblemen und Bugfixes bei der einzel und…
Alexander-Nuding Jun 8, 2021
497d07a
deleted duplicated querys
kayaok Jun 8, 2021
a830f84
Merge branch 'develop' into BSAPP-683/686
kayaok Jun 8, 2021
6131461
Merge branch 'develop' into groupbranch-gruppe-fuenf
gekelerJulius Jun 8, 2021
f6fe3da
Kommentare
Alexander-Nuding Jun 9, 2021
39c1680
Merge pull request #300 from exxcellent/BSAPP-683/686
kayaok Jun 9, 2021
e1ee4b2
add method from WettkampfDAO to WettkampfComponentImpl and add Test
lisa-tochtermann Jun 9, 2021
e2f5f8c
MatchComponentImpl call method from WettkampfComponent
muelleyv Jun 9, 2021
4578360
-Added noArgs Contructor in DsbMitgliedDO.java
Emanuel-Inf Jun 9, 2021
018b6b2
script V23 modified
anetteadam Jun 9, 2021
1d060de
Merge branch 'develop' into T2D
jschaenz Jun 9, 2021
44b154d
Merge branch 'develop' into BSAPP-764-4
anetteadam Jun 9, 2021
170f255
added endpoint to get a Mannschaftsmitglied by team id and Rueckennummer
Patrick762 Jun 9, 2021
b946555
Merge pull request #302 from exxcellent/BSAPP-764-4
anetteadam Jun 9, 2021
1480c60
Dublizierter code entfernt und testabdeckung verbessert
Alexander-Nuding Jun 9, 2021
35a1226
Precondition hinzugefügt, um gewünschtes Verhalten bei falschem Heade…
MarcoLuL Jun 9, 2021
4097f6e
Testabdeckung
Alexander-Nuding Jun 9, 2021
304579a
Testabdeckung
Alexander-Nuding Jun 9, 2021
e9416ee
Bugfix von Precondition
MarcoLuL Jun 9, 2021
8ca3012
unnützes bei den tests entfernt
Alexander-Nuding Jun 9, 2021
48f06e9
Testabdeckung erhöht.
MarcoLuL Jun 9, 2021
d70592e
Merge branch 'develop' into groupbranch-forgottensemicolon
Alexander-Nuding Jun 9, 2021
b3fe626
Added test for function findByTeamAndRueckennummer()
Lena-Ger Jun 9, 2021
0cb6db4
Added test for function findByTeamAndRueckennummer() in Mannschaftsmi…
Lena-Ger Jun 9, 2021
085b87e
Added test for function findByTeamIdAndRueckennummer() in Mannschafts…
RoamNC77Fr Jun 9, 2021
815f407
Merge branch 'develop' into groupbranch-gruppe-fuenf
gekelerJulius Jun 9, 2021
902ca9e
Create V27_0__alter_sequences_value_to_highest_ids.sql (#301)
gekelerJulius Jun 9, 2021
3bc4ae9
removed code smells and removed logging of user-controlled data (Secu…
Patrick762 Jun 9, 2021
3bd3daf
Removed unused imports and unused private field
RoamNC77Fr Jun 9, 2021
d07ef9b
Teste Vorbedingung
TobiasBraunHSR Jun 9, 2021
01c2ba3
Testabdeckung
ghebremu Jun 9, 2021
5c8a779
Reverted deleted private fields ligaComponent and passeComponent
RoamNC77Fr Jun 9, 2021
c26c6e5
Merge remote-tracking branch 'origin/BSAPP-911' into BSAPP-911
ghebremu Jun 9, 2021
1bd2b87
removed code smells in package business-logic/Match
Patrick762 Jun 9, 2021
b38a904
Test abdeckung
TobiasBraunHSR Jun 9, 2021
d530233
Removed code smells in package user
Lena-Ger Jun 9, 2021
7a70c10
Unnötige abfrage entfernt
TobiasBraunHSR Jun 9, 2021
5560d78
Testabdeckung
ghebremu Jun 9, 2021
6650090
Merge remote-tracking branch 'origin/BSAPP-911' into BSAPP-911
ghebremu Jun 9, 2021
3c53934
Merge pull request #305 from exxcellent/BSAPP-911
TobiasBraunHSR Jun 9, 2021
9adef60
Merge branch 'develop' into groupbranch-forgottensemicolon
Alexander-Nuding Jun 9, 2021
38c11a4
add Test to MatchComponentImplTest
Jun 9, 2021
47de62b
Test for sendFeedback
Energiner Jun 9, 2021
81a3bb5
Merge remote-tracking branch 'origin/T2D' into T2D
Energiner Jun 9, 2021
75f6142
bugfix bei tests
Alexander-Nuding Jun 9, 2021
526ba98
Merge pull request #295 from exxcellent/groupbranch-forgottensemicolon
Alexander-Nuding Jun 9, 2021
0ad9f70
add test for createInitialMatchesWT0
Jun 9, 2021
720e7d3
Merge branch 'develop' into T2D
jschaenz Jun 9, 2021
06365b7
fixed merge conflicts
Jun 9, 2021
4c83aa5
Merge pull request #299 from exxcellent/T2D
lisa-tochtermann Jun 9, 2021
d99bab1
Merge branch 'groupbranch-gruppe-fuenf' into BSAPP-814
Patrick762 Jun 9, 2021
541c5e7
Removed duplication
Patrick762 Jun 9, 2021
775243b
Removed duplication
Patrick762 Jun 9, 2021
c0d9051
added missing constructor parameter
Patrick762 Jun 9, 2021
105285f
fixed conflicts
Patrick762 Jun 10, 2021
5af3f82
Typo: accesToken -> accessToken
Jun 10, 2021
57aab9c
Merge branch 'develop' into BSAPP-814
Patrick762 Jun 10, 2021
38d3fd1
fixed conflicts
Patrick762 Jun 10, 2021
cccadfa
fixed conflicts
Patrick762 Jun 10, 2021
9a49447
Merge pull request #310 from exxcellent/BSAPP-814
Patrick762 Jun 10, 2021
3083709
added RegEx check for ConfigurationService create function and added …
Patrick762 Jun 10, 2021
de42643
Merge pull request #311 from exxcellent/BSAPP-791
Patrick762 Jun 10, 2021
813ad8e
added test for findByWettkampfIDMatchNrScheibenNr
Patrick762 Jun 10, 2021
6269ff5
Added Tests in UserBasicDAOTest
Lena-Ger Jun 10, 2021
8c66352
added test for CustomWebAuthenticationDetailsSource
Patrick762 Jun 10, 2021
912e29c
moved methods
Patrick762 Jun 10, 2021
e6525ec
Merge branch 'groupbranch-gruppe-fuenf' into BSAPP-920
Patrick762 Jun 10, 2021
d04a276
fixed conflicts
Patrick762 Jun 10, 2021
b9afb1c
Merge pull request #312 from exxcellent/BSAPP-920
Patrick762 Jun 10, 2021
465e514
added some tests
Patrick762 Jun 10, 2021
253c064
removed code smells
Patrick762 Jun 10, 2021
70a4634
Merge pull request #313 from exxcellent/groupbranch-gruppe-fuenf
MarioaAk Jun 11, 2021
4233b01
fixed backend problems
Patrick762 Jun 11, 2021
15413f4
Merge branch 'develop' into groupbranch-gruppe-fuenf
Patrick762 Jun 11, 2021
651cd90
Merge pull request #314 from exxcellent/groupbranch-gruppe-fuenf
Patrick762 Jun 11, 2021
98d0246
architecture changes for DsbMannschaftComponentImpl
Energiner Jun 17, 2021
fd159c5
Merge pull request #315 from exxcellent/develop
Patrick762 Jun 18, 2021
535b176
Revert "Removed code smells in package user"
Patrick762 Jun 18, 2021
ef43099
fixed revert problems
Patrick762 Jun 18, 2021
759fa3a
added test
Patrick762 Jun 18, 2021
6c48a8a
Merge pull request #316 from exxcellent/groupbranch-gruppe-fuenf
Patrick762 Jun 18, 2021
caef2f3
Merge pull request #317 from exxcellent/develop
TobiasBraunHSR Jun 21, 2021
ab512c5
Kopf für Methode für PDF Generierung
TobiasBraunHSR Jun 21, 2021
60a9a0b
Erste schnittstelle für übersicht
Alexander-Nuding Jun 21, 2021
32c01eb
kleine anpassung
Alexander-Nuding Jun 21, 2021
f58a998
Erste PDF
Alexander-Nuding Jun 21, 2021
5cc785c
anpasungen frontend
Alexander-Nuding Jun 21, 2021
fd7269a
Merge pull request #318 from exxcellent/BSAPP-804
lisa-tochtermann Jun 21, 2021
f120e3e
Merge pull request #319 from exxcellent/T2D
Emanuel-Inf Jun 21, 2021
ccfb29f
kleine Fehlerbehebung
ghebremu Jun 21, 2021
9f70fa5
Add new functionality for Kampfrichter in DAO and Component. And add …
lisa-tochtermann Jul 2, 2021
96b1ec6
-Added Restendpoint for Kampfrichter, added Mapper and extended DO an…
Emanuel-Inf Jul 2, 2021
845fbee
-Fixed codesmells
Emanuel-Inf Jul 2, 2021
feaca86
Add new Functionality in KampfrichterComponent and add select to find…
lisa-tochtermann Jul 2, 2021
a3bb7ed
-REST endpoint for Kampfrichter who is assinged to the Wettkampftag.
Emanuel-Inf Jul 2, 2021
0596ae2
Implemented a test for findByWettkampfidNotInWettkampftag.
MaxWeise Jul 2, 2021
b5aac7a
Implementation of a test case for the KampfrichterExtendedDTO class.
MaxWeise Jul 2, 2021
31be1ee
Commit all changes, so I can pull again and workout eventual conflicts.
MaxWeise Jul 2, 2021
71dbf1d
KampfrichterExtendedDTO now extends KampfrichterDTO.
MaxWeise Jul 2, 2021
b631fa2
Cleaned up the code to and grouped the getters and setters.
MaxWeise Jul 2, 2021
450a588
Implemented a test class for KampfrichterDO
MaxWeise Jul 3, 2021
000fdc2
Cleaned up the test class
MaxWeise Jul 3, 2021
df190be
Ordner- und grobe Programmstruktur für " view = Schuetzenstatistik" e…
PriXss Jul 3, 2021
cdef32c
implemented test class for KampfrichterExtendedBE.
MaxWeise Jul 3, 2021
15f2ea1
Clean up
MaxWeise Jul 3, 2021
a12ac39
-Fixed codesmells and Tests for KampfrichterService new methods
Emanuel-Inf Jul 3, 2021
f4c1609
Add new Test for KampfrichterMapper
lisa-tochtermann Jul 3, 2021
ca7c817
Add Test for KampfrichterExtendedBE to DO and BE to DO
lisa-tochtermann Jul 3, 2021
9908628
Fix Codesmell
lisa-tochtermann Jul 3, 2021
dd27d96
-Fixed codesmell
Emanuel-Inf Jul 3, 2021
c637f38
Rename Attributes in KampfrichterDO
lisa-tochtermann Jul 3, 2021
494c5e7
Backend Service changes
gekelerJulius Jul 3, 2021
c13e6aa
Merge pull request #320 from exxcellent/BSAPP-958
lisa-tochtermann Jul 3, 2021
6c0b98a
Merge pull request #321 from exxcellent/T2D
Emanuel-Inf Jul 3, 2021
19a3f91
Backend Service changes
gekelerJulius Jul 3, 2021
aa78173
SchuetzenMapper aktualisiert
PriXss Jul 3, 2021
ce65448
Changed variable names
wielandg Jul 3, 2021
0339395
Changed variable names
wielandg Jul 3, 2021
418740c
Backend Service changes
gekelerJulius Jul 3, 2021
1beee19
Backend Service changes
gekelerJulius Jul 3, 2021
87546d6
Buttons im Frontend werden nun passend angezeigt
Alexander-Nuding Jul 3, 2021
6439e4d
Erste Änderungen
carawendt Jul 3, 2021
b7747b3
finished comments
carawendt Jul 3, 2021
842ceba
tabelle wird in der pdf angezeigt + bugfix beim sql in LigatabelleDAO
Alexander-Nuding Jul 3, 2021
c74ae9f
finished comments
carawendt Jul 3, 2021
72846f0
Erste komplette PDF für tagesübersicht erstellt, enthällt noch fehler
Alexander-Nuding Jul 3, 2021
68a8756
finished tests for UserService
carawendt Jul 4, 2021
1d39a0d
Changes to use regex from database
Patrick762 Jul 4, 2021
95e479b
finished tests for UserRoleComponentImpl
carawendt Jul 4, 2021
f44c134
added fail case test for UserRoleComponentImpl
carawendt Jul 4, 2021
09535f5
removed regex check from backend
Patrick762 Jul 4, 2021
82cca57
removed unused tests
Patrick762 Jul 4, 2021
87de4c1
Backend Service changes
gekelerJulius Jul 4, 2021
f89a4fa
change permissions from create and delete in KampfrichterService
lisa-tochtermann Jul 4, 2021
f0a1339
Merge branch 'develop' into BSAPP-919
carawendt Jul 4, 2021
a19a97c
Merge pull request #323 from exxcellent/BSAPP-958
lisa-tochtermann Jul 4, 2021
8b68db9
Added V28 SQL Script
JanHailfinger Jul 4, 2021
d21d35f
Merge pull request #324 from exxcellent/T2D
Emanuel-Inf Jul 4, 2021
d8cf585
Merge branch 'develop' into BSAPP-931
Patrick762 Jul 4, 2021
436e567
Preconditions, Test Preconditions
TobiasBraunHSR Jul 4, 2021
acd832e
Test
ghebremu Jul 4, 2021
7248d1c
Test
ghebremu Jul 4, 2021
58fd39a
Merge branch 'develop' into BSAPP-919
carawendt Jul 4, 2021
29990db
Test
ghebremu Jul 4, 2021
141ea69
Test
ghebremu Jul 4, 2021
94e395b
Gibt wird ohne ie geschrieben
TobiasBraunHSR Jul 4, 2021
9b9a193
Oberflächliche PDF prüfung
TobiasBraunHSR Jul 4, 2021
d7fc0f7
Merge pull request #325 from exxcellent/BSAPP-931
Patrick762 Jul 4, 2021
3e31a82
Mock für findAllByVeranstaltungId
TobiasBraunHSR Jul 4, 2021
5464c51
Test
ghebremu Jul 4, 2021
44beea9
Merge remote-tracking branch 'origin/BSAPP-930' into BSAPP-930
ghebremu Jul 4, 2021
701f9a4
Test
ghebremu Jul 4, 2021
733352b
Merge branch 'develop' into BSAPP-919
carawendt Jul 4, 2021
72b86dd
generate MatchDO
TobiasBraunHSR Jul 4, 2021
395c8cc
Mock MatchComponent
TobiasBraunHSR Jul 4, 2021
a6e54e6
Tagesübersicht PDF funktiniert
Alexander-Nuding Jul 4, 2021
98a39d6
Mock Veranstaltung FindById
TobiasBraunHSR Jul 4, 2021
f435f06
Merge remote-tracking branch 'origin/BSAPP-930' into BSAPP-930
Alexander-Nuding Jul 4, 2021
d0c1b9e
Test für sortForDisplay
ghebremu Jul 4, 2021
36cf61c
Test fertig
TobiasBraunHSR Jul 4, 2021
86a10ef
Test fertig
TobiasBraunHSR Jul 4, 2021
96afd5b
Merge branch 'develop' into BSAPP-930
TobiasBraunHSR Jul 4, 2021
fd9b5c9
Merge pull request #327 from exxcellent/develop
TobiasBraunHSR Jul 4, 2021
e6908f5
Test für DownloadService
ghebremu Jul 4, 2021
3e8e123
Merge remote-tracking branch 'origin/BSAPP-930' into BSAPP-930
ghebremu Jul 4, 2021
ed87285
bugfix
Alexander-Nuding Jul 4, 2021
858e538
Merge pull request #328 from exxcellent/BSAPP-930
TobiasBraunHSR Jul 4, 2021
d463305
Frontend Service changes - Implementing DTO class for Schuetzenstatis…
gekelerJulius Jul 4, 2021
87b494b
Merge pull request #329 from exxcellent/groupbranch-forgottensemicolon
TobiasBraunHSR Jul 5, 2021
26c3900
Redesign wettkampf.component.ts und wettkampf-ergebnis.service.ts + B…
gekelerJulius Jul 6, 2021
bb531d7
Improvements to readability and Code Quality
gekelerJulius Jul 6, 2021
0a52bba
Added serialVersionUID
gekelerJulius Jul 6, 2021
b36892b
Merge branch 'develop' into groupbranch-gruppe-fuenf
gekelerJulius Jul 6, 2021
0ed6a43
Revert "Groupbranch forgottensemicolon"
MarioaAk Jul 6, 2021
cf4d913
Merge pull request #331 from exxcellent/revert-329-groupbranch-forgot…
MarioaAk Jul 6, 2021
9cee5a2
added V29 skript to give ligaleiter permission to delete mannschaften
anetteadam Jul 6, 2021
67d911c
dependency angepasst
Alexander-Nuding Jul 6, 2021
be5f940
modified Permission to delete Mannschaft
anetteadam Jul 6, 2021
a3d5b5f
Merge branch 'develop' into BSAPP-919
carawendt Jul 7, 2021
1ae4584
Merge pull request #322 from exxcellent/BSAPP-919
carawendt Jul 7, 2021
6858ca7
Merge branch 'develop' into BSAPP-901
anetteadam Jul 7, 2021
2165568
Merge pull request #333 from exxcellent/BSAPP-901
anetteadam Jul 7, 2021
bcc7cbf
Merge branch 'develop' into groupbranch-gruppe-fuenf
gekelerJulius Jul 7, 2021
ea9e12a
Merge pull request #336 from exxcellent/develop
Patrick762 Jul 7, 2021
c8b68ba
remove code smells
Patrick762 Jul 7, 2021
ad7ff78
created V30_0__create_view_schuetzenstatistik.sql
gekelerJulius Jul 7, 2021
106c1a6
Merge pull request #337 from exxcellent/develop
Patrick762 Jul 7, 2021
cdc1a64
Merge pull request #338 from exxcellent/BSAPP-920
Patrick762 Jul 7, 2021
5aea718
remove code smells
Patrick762 Jul 7, 2021
750fee8
create Test Template for SchuetzenstatistikService
gekelerJulius Jul 7, 2021
fc7748a
create Tests for Schuetzenstatistik Objects
gekelerJulius Jul 7, 2021
a0e29c8
create more Tests for Schuetzenstatistik Objects
gekelerJulius Jul 7, 2021
1e034e0
SchuetzenstatistikTest verbessert
PriXss Jul 7, 2021
53718f3
Entity und Mappper Test
PriXss Jul 7, 2021
1123472
create more Tests for Schuetzenstatistik Objects
gekelerJulius Jul 7, 2021
e78c70e
Schuetzenstatistik Objects improvements
gekelerJulius Jul 7, 2021
4baeb75
Schuetzenstatistik Objects improvements
gekelerJulius Jul 7, 2021
f1c934f
RequiredPermission verändert, damit die Wettkampfstatistik richtig an…
MarcoLuL Jul 7, 2021
0c135a4
Merge remote-tracking branch 'origin/develop' into groupbranch-forgot…
Alexander-Nuding Jul 7, 2021
cf61ad1
Schuetzenstatistik Tests and Code Improvements
gekelerJulius Jul 7, 2021
69f3da8
erneutes hinzufügen von code der verlohren gegangen ist
Alexander-Nuding Jul 7, 2021
d75cad6
Merge pull request #339 from exxcellent/BSAPP-936
MarcoLuL Jul 7, 2021
5c1db0b
Merge pull request #340 from exxcellent/groupbranch-forgottensemicolon
TobiasBraunHSR Jul 7, 2021
f0893fb
Merge branch 'develop' into groupbranch-gruppe-fuenf
Patrick762 Jul 7, 2021
d9d2d7e
Merge branch 'develop' into BSAPP-968
Patrick762 Jul 7, 2021
f7a0453
bugfix
Patrick762 Jul 7, 2021
796ac8d
Removed Codesmells from bogenliga-application/.../services/v1/ligata…
JanHailfinger Jul 7, 2021
e0193af
Revert "remove code smells"
Patrick762 Jul 7, 2021
b100f92
bugfix for revert
Patrick762 Jul 7, 2021
c8c29ee
Removed unused Imports in VeranstaltungMapper
Lena-Ger Jul 7, 2021
4ee87db
Removed unused Imports in VereinComponent
Lena-Ger Jul 7, 2021
4579d9f
removed unused import
RoamNC77Fr Jul 7, 2021
6fd0ec9
Removed unused Imports in VereinDO
Lena-Ger Jul 7, 2021
c25dcfc
removed unused import
RoamNC77Fr Jul 7, 2021
75f92ad
Removed unused Imports in UserRoleMapper
Lena-Ger Jul 7, 2021
7d3c813
Removed unused Imports in RueckennummernComponentImpl
Lena-Ger Jul 7, 2021
2df8e75
Removed unused Imports in RoleMapper
Lena-Ger Jul 7, 2021
dd076a8
Added Precondition Checks
gekelerJulius Jul 7, 2021
193156b
Merge pull request #330 from exxcellent/groupbranch-gruppe-fuenf
MarioaAk Jul 7, 2021
d74d0cc
Merge branch 'develop' into BSAPP-968
MarioaAk Jul 7, 2021
ddf73d9
Merge pull request #341 from exxcellent/BSAPP-968
MarioaAk Jul 7, 2021
c1fcf69
changed permissions for delete-method
kayaok Jul 8, 2021
d275b69
deleted veranstaltungcomponent injection
kayaok Jul 8, 2021
9b774c0
deletion script
kayaok Jul 8, 2021
8838902
modified test
anetteadam Jul 8, 2021
94b6819
Merge branch 'develop' into BSAPP-901
Sherna99 Jul 8, 2021
474adf4
Merge pull request #343 from exxcellent/BSAPP-901
kayaok Jul 8, 2021
2d001c2
Bugfix and improvements
gekelerJulius Jul 8, 2021
b30be56
dropped and recreated view schuetzenstatistik with new columns
gekelerJulius Jul 8, 2021
cdc4257
Merge branch 'develop' into groupbranch-gruppe-fuenf
gekelerJulius Jul 8, 2021
8b4ae9a
rename SQL
gekelerJulius Jul 8, 2021
c606e19
Merge pull request #344 from exxcellent/groupbranch-gruppe-fuenf
MichaelSVF Jul 8, 2021
f5822ef
zwei zusätzliche Views als Basis für eine Performance Verbesserung de…
Sep 9, 2021
8efc11d
Merge branch 'develop' into BSAPP-870
MarioaAk Oct 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
working-directory: ./bogenliga
run: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Build Status](https://travis-ci.org/exxcellent/swt2-bsa-backend.svg?branch=master)](https://travis-ci.org/exxcellent/swt2-bsa-backend)
[![sonarcloud](https://sonarcloud.io/api/project_badges/measure?project=de.bogenliga.application&metric=alert_status)](https://sonarcloud.io/dashboard?id=de.bogenliga.application)
[![sonarcloud_cov](https://sonarcloud.io/api/project_badges/measure?project=de.bogenliga.application&metric=coverage)](https://sonarcloud.io/dashboard?id=de.bogenliga.application)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=exxcellent_swt2-bsa-backend&metric=alert_status)](https://sonarcloud.io/dashboard?id=exxcellent_swt2-bsa-backend)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=exxcellent_swt2-bsa-backend&metric=coverage)](https://sonarcloud.io/dashboard?id=exxcellent_swt2-bsa-backend)
[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=exxcellent_swt2-bsa-backend&metric=code_smells)](https://sonarcloud.io/dashboard?id=exxcellent_swt2-bsa-backend)


# Bogenliga Application
Expand Down Expand Up @@ -34,3 +34,4 @@ Use ```mvnw``` instead of ```mvn``` commands.
- https://flywaydb.org/documentation/migrations
- https://flywaydb.org/documentation/maven/
- https://flywaydb.org/documentation/command/migrate
-
1 change: 0 additions & 1 deletion Test

This file was deleted.

37 changes: 35 additions & 2 deletions bogenliga/bogenliga-application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
<artifactId>bogenliga-business-logic</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>de.bogenliga</groupId>
<artifactId>bogenliga-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand Down Expand Up @@ -134,6 +138,16 @@
</profiles>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.6</version>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
Expand All @@ -146,7 +160,6 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
Expand Down Expand Up @@ -200,6 +213,26 @@
</executions>
</plugin>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report-aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- database migration -->
<plugin>
<groupId>org.flywaydb</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,9 @@
import java.security.Principal;
import java.util.List;
import java.util.stream.Collectors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import de.bogenliga.application.business.competitionclass.api.CompetitionClassComponent;
import de.bogenliga.application.business.competitionclass.api.types.CompetitionClassDO;
import de.bogenliga.application.common.service.ServiceFacade;
Expand Down Expand Up @@ -41,11 +34,11 @@ public class CompetitionClassService implements ServiceFacade {
private static final String PRECONDITION_MSG_NAME = "The CompetitionClass must be given a name";


private final Logger LOGGER = LoggerFactory.getLogger(CompetitionClassService.class);

private final CompetitionClassComponent competitionClassComponent;



/**
* Constructor with dependency injection
*
Expand All @@ -62,8 +55,7 @@ public CompetitionClassService(final CompetitionClassComponent competitionClassC
*
* @return lost of {@link CompetitionClassDTO} as JSON
*/
@RequestMapping(method = RequestMethod.GET,
produces = MediaType.APPLICATION_JSON_VALUE)
@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)
@RequiresPermission(UserPermission.CAN_READ_SYSTEMDATEN)
public List<CompetitionClassDTO> findAll() {
final List<CompetitionClassDO> competitionClassDOList = competitionClassComponent.findAll();
Expand All @@ -77,16 +69,13 @@ public List<CompetitionClassDTO> findAll() {
* @param id id of the klasse to be returned
* @return returns a klasse
*/
@RequestMapping(
@GetMapping(
value = "{id}",
method = RequestMethod.GET,
produces = MediaType.APPLICATION_JSON_VALUE)
@RequiresPermission(UserPermission.CAN_READ_SYSTEMDATEN)
public CompetitionClassDTO findById(@PathVariable("id") final long id){
Preconditions.checkArgument(id >= 0, PRECONDITION_MSG_KLASSE_ID);

LOGGER.debug("Receive 'findById' request with ID '{}'", id);

final CompetitionClassDO competitionClassDO = competitionClassComponent.findById(id);

return CompetitionClassDTOMapper.toDTO.apply(competitionClassDO);
Expand All @@ -96,23 +85,16 @@ public CompetitionClassDTO findById(@PathVariable("id") final long id){
/**
* I persist a new CompetitionClass and return this CompetitionClass entry
*
* @param competitionClassDTO
* @param principal
* @param competitionClassDTO COmpetition Data to be stored to DB
* @param principal user saving data
*
* @return list of {@link CompetitionClassDTO} as JSON
*/
@RequestMapping(method = RequestMethod.POST,
@PostMapping(
consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.APPLICATION_JSON_VALUE)
@RequiresPermission(UserPermission.CAN_CREATE_SYSTEMDATEN)
public CompetitionClassDTO create(@RequestBody final CompetitionClassDTO competitionClassDTO, final Principal principal) {
LOGGER.debug(
"Receive 'create' request with klasseId '{}', klasseName '{}', klasseJahrgangMin '{}', klasseJahrgangMax '{}', klasseNr '{}' ",
competitionClassDTO.getId(),
competitionClassDTO.getKlasseName(),
competitionClassDTO.getKlasseJahrgangMin(),
competitionClassDTO.getKlasseJahrgangMax(),
competitionClassDTO.getKlasseNr());

checkPreconditions(competitionClassDTO);

Expand All @@ -127,21 +109,15 @@ public CompetitionClassDTO create(@RequestBody final CompetitionClassDTO competi

/**
* I persist a newer version of the CompetitionClass in the database.
*
*/
@RequestMapping(method = RequestMethod.PUT,
@PutMapping(
consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.APPLICATION_JSON_VALUE)
@RequiresPermission(UserPermission.CAN_MODIFY_SYSTEMDATEN)
public CompetitionClassDTO update(@RequestBody final CompetitionClassDTO competitionClassDTO,
final Principal principal) {

LOGGER.debug("Receive 'update' request with id '{}', name '{}', jahrgang_Min '{}', jahrgang_Max '{}', klasseNr '{}'",

competitionClassDTO.getId(),
competitionClassDTO.getKlasseName(),
competitionClassDTO.getKlasseJahrgangMin(),
competitionClassDTO.getKlasseJahrgangMax(),
competitionClassDTO.getKlasseNr());

checkPreconditions(competitionClassDTO);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,23 @@ private ConfigurationDTOMapper() {
* I map the {@link ConfigurationDO} object to the {@link ConfigurationDTO} object
*/
public static final Function<ConfigurationDO, ConfigurationDTO> toDTO = vo -> {
final Long id = vo.getId();
final String key = vo.getKey();
final String value = vo.getValue();
final String regex = vo.getRegex();

return new ConfigurationDTO(key, value);
return new ConfigurationDTO(id, key, value, regex);
};

/**
* I map the {@link ConfigurationDTO} object to the {@link ConfigurationDO} object
*/
public static final Function<ConfigurationDTO, ConfigurationDO> toVO = dto -> {
public static final Function<ConfigurationDTO, ConfigurationDO> toDO = dto -> {
final Long id = dto.getId();
final String key = dto.getKey();
final String value = dto.getValue();
final String regex = dto.getRegex();

return new ConfigurationDO(key, value);
return new ConfigurationDO(id, key, value, regex);
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
* @see DataTransferObject
*/
public class ConfigurationDTO implements DataTransferObject {
private Long id;
private String key;
private String value;

private String regex;

/**
* Constructor
Expand All @@ -22,16 +23,28 @@ public ConfigurationDTO() {
// empty constructor
}


/**
* Constructor with required fields
*
* @param key of the key-value-pair
* @param value of the key-value-pair
*/
public ConfigurationDTO(final String key, final String value) {

public ConfigurationDTO(final Long id, final String key, final String value, final String regex){
this.id = id;
this.key = key;
this.value = value;
this.regex = regex;
}


public Long getId() {
return id;
}


public void setId(Long id) {
this.id = id;
}


Expand All @@ -53,4 +66,14 @@ public String getValue() {
public void setValue(final String value) {
this.value = value;
}


public String getRegex() {
return regex;
}


public void setRegex(String regex) {
this.regex = regex;
}
}
Loading