~jan0sch/smederee

Showing 11 changes starting from 2909bffa7a0707adac83f4b49920eecb783bf038.
2023-03-23 (Thu), 6:38 PM - Jens Grassel - 2909bffa7a0707adac83f4b49920eecb783bf038

Set version to next SNAPSHOT version.

Summary of changes
1 files modified with 7 lines added and 7 lines removed
  • build.sbt with 7 added and 7 removed lines
2023-03-23 (Thu), 6:28 PM - Jens Grassel - c25caacd5389f75b0e36ba4fbaefcd53d7f49a17

TAG v0.5.0

This release contains BREAKING CHANGES in the database structure!

Added
-----

- extensions to the markdown renderer for:
   - anchors for headings
   - table rendering
   - task list items
- linkable line number for file viewer

Changed
-------

- **BREAKING CHANGE** configuration file format
- **BREAKING CHANGE** move database tables to custom schemas
- move database migration files to custom path
- adjust migration tooling accordingly
- move some types and classes to other modules
- limit length of patch comment shown on repository overview page
Summary of changes
2023-03-23 (Thu), 6:27 PM - Jens Grassel - 2d3052568f30e64a5eaee54821224f3591f21c62

Prepare RELEASE 0.5.0

Summary of changes
2 files modified with 18 lines added and 7 lines removed
  • CHANGELOG.md with 11 added and 0 removed lines
  • build.sbt with 7 added and 7 removed lines
2023-03-22 (Wed), 4:40 PM - Jens Grassel - a897838a717551ef2c69519fba6dae53e50348c3

Code Cleanup

- remove unused imports and variables
- add some debug logging
Summary of changes
6 files modified with 26 lines added and 21 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/AuthenticationRoutes.scala with 1 added and 4 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/DarcsSshCommand.scala with 24 added and 6 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/DoobieSshAuthenticationRepository.scala with 0 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/SshServer.scala with 0 added and 6 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/LabelRoutes.scala with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/MilestoneRoutes.scala with 0 added and 2 removed lines
2023-03-21 (Tue), 4:52 PM - Jens Grassel - 0b644a46fb1e27f92fceb3dc6c5c9572ea6081c7

Fix: Database schemas not properly created upon startup.

- create two migrators properly
- migrate hub and tickets database schemas as expected

Fixes: 252c14a83f46a13760979e5af3a79fb46772670a
Summary of changes
1 files modified with 8 lines added and 2 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/HubServer.scala with 8 added and 2 removed lines
2023-03-20 (Mon), 8:11 AM - Jens Grassel - 38f99902c1056d24cd1d3166943a694679d114aa

Code Cleanup

- remove unused imports
- remove unused variables
Summary of changes
20 files modified with 4 lines added and 51 lines removed
  • modules/hub/src/it/scala/de/smederee/hub/AuthenticationMiddlewareTest.scala with 0 added and 4 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/DatabaseMigratorTest.scala with 0 added and 3 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/DoobieAccountManagementRepositoryTest.scala with 0 added and 4 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/DoobieAuthenticationRepositoryTest.scala with 0 added and 5 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/DoobieSignupRepositoryTest.scala with 0 added and 5 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/DoobieVcsMetadataRepositoryTest.scala with 0 added and 4 removed lines
  • modules/hub/src/it/scala/de/smederee/ssh/SshServerProviderTest.scala with 0 added and 3 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/Account.scala with 0 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/HubServer.scala with 0 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SessionHelpers.scala with 0 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 0 added and 4 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/types.scala with 0 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/DarcsSshCommand.scala with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/DoobieSshAuthenticationRepository.scala with 0 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/SshAuthenticator.scala with 0 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/LabelRoutes.scala with 1 added and 3 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/MilestoneRoutes.scala with 1 added and 4 removed lines
  • modules/hub/src/test/scala/de/smederee/hub/SessionHelpersTest.scala with 1 added and 1 removed lines
  • modules/hub/src/test/scala/de/smederee/hub/VcsRepositoryPatchMetadataTest.scala with 0 added and 1 removed lines
  • modules/hub/src/test/scala/de/smederee/ssh/PublicSshKeyTest.scala with 0 added and 1 removed lines
2023-03-19 (Sun), 1:11 PM - Jens Grassel - 252c14a83f46a13760979e5af3a79fb46772670a

Refactoring: Heavy Refactoring to move tickets into separate module.

This patch is _huge_ and breaks out the already implemented tickets features
(labels and milestones) into a separate module. Very likely the ticketing
will move into a service of its own so this will ease things further down
the road. But yes, it has complicated things now. ;-)

BREAKING CHANGES
----------------

- module configuration is now wrapped into a top most "module" value

So instead of having

```
database
service
```

in the configuration for the hub module, now we have

```
hub {
  database
  service
}
```

General changes
---------------

- add more flexible ignore rule for module specific local configurations
- adjust options for the JVM when running sbt
- update Scala to 3.3.0-RC to be able to use code health checks
- enable code health checks (unused warnings etc.)
- update flyway to 9.15.2
- update circe to 0.14.5
- update os-lib to 0.9.1

Database layer and migrations
-----------------------------

- use schemas per module to avoid clashes within the same database
- move migration files into specific folders to avoid conflicts with flyway

Email module
------------

- add EmailAddress type (moved from hub Email type)

Hub module
----------

- move some types and classes to other modules because of usage also for
  tickets
- implement views (twirl templates) for tickets
- limit length of patch comment on repository overview page

i18n module
-----------

- add LanguageCode types (moved from hub module)

Security module
---------------

- add CsrfToken, Password, PasswordHash, UserId and Username (moved from
  hub module)

Tickets module
--------------

- add database migrations for base tables
- add base classes (moved from hub) and configuration
Summary of changes
69 files added
  • modules/hub/src/main/resources/db/migration/hub/V1__base_tables.sql
  • modules/hub/src/main/resources/db/migration/hub/V2__repository_tables.sql
  • modules/hub/src/main/resources/db/migration/hub/V3__fork_tables.sql
  • modules/hub/src/main/scala/de/smederee/hub/config/ConfigurationPath.scala
  • modules/hub/src/main/scala/de/smederee/tickets/LabelForm.scala
  • modules/hub/src/main/scala/de/smederee/tickets/LabelRoutes.scala
  • modules/hub/src/main/scala/de/smederee/tickets/MilestoneForm.scala
  • modules/hub/src/main/scala/de/smederee/tickets/MilestoneRoutes.scala
  • modules/hub/src/main/scala/de/smederee/tickets/UsernamePathParameter.scala
  • modules/hub/src/main/twirl/de/smederee/tickets/views/csrfToken.scala.html
  • modules/hub/src/main/twirl/de/smederee/tickets/views/editLabel.scala.html
  • modules/hub/src/main/twirl/de/smederee/tickets/views/editLabels.scala.html
  • modules/hub/src/main/twirl/de/smederee/tickets/views/editMilestone.scala.html
  • modules/hub/src/main/twirl/de/smederee/tickets/views/editMilestones.scala.html
  • modules/hub/src/main/twirl/de/smederee/tickets/views/format/formatDate.scala.html
  • modules/hub/src/main/twirl/de/smederee/tickets/views/forms/renderFormErrors.scala.html
  • modules/hub/src/main/twirl/de/smederee/tickets/views/icon.scala.html
  • modules/hub/src/main/twirl/de/smederee/tickets/views/showProjectMenu.scala.html
  • modules/i18n/src/main/scala/de/smederee/i18n/LanguageCode.scala
  • modules/i18n/src/test/scala/de/smederee/i18n/LanguageCodeTest.scala
  • modules/security/src/main/scala/de/smederee/security/CsrfToken.scala
  • modules/security/src/main/scala/de/smederee/security/Password.scala
  • modules/security/src/main/scala/de/smederee/security/PasswordHash.scala
  • modules/security/src/main/scala/de/smederee/security/UserId.scala
  • modules/security/src/main/scala/de/smederee/security/Username.scala
  • modules/security/src/test/scala/de/smederee/security/PasswordTest.scala
  • modules/security/src/test/scala/de/smederee/security/UserIdTest.scala
  • modules/tickets/src/it/resources/application.conf
  • modules/tickets/src/it/resources/logback-test.xml
  • modules/tickets/src/it/scala/de/smederee/tickets/BaseSpec.scala
  • modules/tickets/src/it/scala/de/smederee/tickets/DoobieLabelRepositoryTest.scala
  • modules/tickets/src/it/scala/de/smederee/tickets/DoobieMilestoneRepositoryTest.scala
  • modules/tickets/src/it/scala/de/smederee/tickets/Generators.scala
  • modules/tickets/src/it/scala/de/smederee/tickets/config/DatabaseMigratorTest.scala
  • modules/tickets/src/main/resources/db/migration/tickets/V1__create_schema.sql
  • modules/tickets/src/main/resources/db/migration/tickets/V2__base_tables.sql
  • modules/tickets/src/main/resources/logback.xml
  • modules/tickets/src/main/resources/reference.conf
  • modules/tickets/src/main/scala/de/smederee/tickets/Assignee.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/DoobieLabelRepository.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/DoobieMilestoneRepository.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/Label.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/LabelRepository.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/Milestone.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/MilestoneRepository.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/Project.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/ProjectRepository.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/Submitter.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/Ticket.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/TicketRepository.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/TicketsUser.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/config/ConfigurationPath.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/config/DatabaseConfig.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/config/DatabaseMigrator.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/config/SmedereeTicketsConfiguration.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/forms/FormValidator.scala
  • modules/tickets/src/main/scala/de/smederee/tickets/forms/types.scala
  • modules/tickets/src/test/resources/logback-test.xml
  • modules/tickets/src/test/scala/de/smederee/tickets/ColourCodeTest.scala
  • modules/tickets/src/test/scala/de/smederee/tickets/Generators.scala
  • modules/tickets/src/test/scala/de/smederee/tickets/LabelDescriptionTest.scala
  • modules/tickets/src/test/scala/de/smederee/tickets/LabelNameTest.scala
  • modules/tickets/src/test/scala/de/smederee/tickets/LabelTest.scala
  • modules/tickets/src/test/scala/de/smederee/tickets/MilestoneDescriptionTest.scala
  • modules/tickets/src/test/scala/de/smederee/tickets/MilestoneTest.scala
  • modules/tickets/src/test/scala/de/smederee/tickets/MilestoneTitleTest.scala
  • modules/tickets/src/test/scala/de/smederee/tickets/TicketContentTest.scala
  • modules/tickets/src/test/scala/de/smederee/tickets/TicketNumberTest.scala
  • modules/tickets/src/test/scala/de/smederee/tickets/TicketTitleTest.scala
82 files modified with 578 lines added and 700 lines removed
  • .ignore with 1 added and 1 removed lines
  • .jvmopts with 7 added and 4 removed lines
  • build.sbt with 67 added and 16 removed lines
  • modules/darcs/src/main/scala/de/smederee/darcs/DarcsCommands.scala with 0 added and 1 removed lines
  • modules/email/src/main/scala/de/smederee/email/EmailMiddleware.scala with 70 added and 0 removed lines
  • modules/email/src/test/scala/de/smederee/email/EmailMiddlewareTest.scala with 0 added and 6 removed lines
  • modules/email/src/test/scala/de/smederee/email/SimpleJavaMailMiddlewareHelpersTest.scala with 0 added and 1 removed lines
  • modules/html-utils/src/test/scala/de/smederee/html/LinkToolsTest.scala with 1 added and 2 removed lines
  • modules/hub/src/it/resources/application.conf with 11 added and 7 removed lines
  • modules/hub/src/it/resources/logback-test.xml with 4 added and 0 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/BaseSpec.scala with 7 added and 4 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/DoobieAccountManagementRepositoryTest.scala with 1 added and 0 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/DoobieAuthenticationRepositoryTest.scala with 1 added and 0 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/DoobieSignupRepositoryTest.scala with 1 added and 0 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/DoobieVcsMetadataRepositoryTest.scala with 5 added and 3 removed lines
  • modules/hub/src/it/scala/de/smederee/hub/Generators.scala with 15 added and 7 removed lines
  • modules/hub/src/main/resources/reference.conf with 158 added and 156 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/Account.scala with 19 added and 211 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AccountManagementRepository.scala with 1 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AccountManagementRoutes.scala with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AuthenticationMiddleware.scala with 0 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AuthenticationRepository.scala with 4 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AuthenticationRoutes.scala with 2 added and 5 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DatabaseMigrator.scala with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieAccountManagementRepository.scala with 3 added and 5 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieAuthenticationRepository.scala with 4 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieSignupRepository.scala with 5 added and 3 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieVcsMetadataRepository.scala with 1 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/HubServer.scala with 45 added and 28 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/LoginForm.scala with 1 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/MarkdownRenderer.scala with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/RequestHelpers.scala with 2 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/Session.scala with 1 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SignupForm.scala with 5 added and 3 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SignupRepository.scala with 4 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SignupRoutes.scala with 2 added and 6 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsMetadataRepository.scala with 1 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepository.scala with 4 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 15 added and 6 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/config/SmedereeHubConfig.scala with 8 added and 124 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/types.scala with 1 added and 54 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/DarcsSshCommand.scala with 2 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/DoobieSshAuthenticationRepository.scala with 1 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/PublicSshKey.scala with 1 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/SshAuthenticationRepository.scala with 1 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/ssh/SshServer.scala with 1 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/account/settings.scala.html with 3 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/account/sshSettings.scala.html with 4 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/contact.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/createRepository.scala.html with 3 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/csrfToken.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/deleteRepository.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/editRepository.scala.html with 3 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/emails/validate.scala.txt with 1 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/errors/unvalidatedAccount.scala.html with 3 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/forms/renderFormErrors.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/imprint.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/index.scala.html with 1 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/login.scala.html with 3 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/main.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/navbar.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/privacyPolicy.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/publicAlpha.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/repositoryPatchMetadata.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showAllRepositories.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositories.scala.html with 3 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryFiles.scala.html with 1 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryHistory.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryMenu.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryOverview.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryPatch.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/signup.scala.html with 3 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/termsOfUse.scala.html with 2 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/welcome.scala.html with 2 added and 0 removed lines
  • modules/hub/src/test/scala/de/smederee/hub/AuthenticationRoutesTest.scala with 4 added and 12 removed lines
  • modules/hub/src/test/scala/de/smederee/hub/Generators.scala with 15 added and 7 removed lines
  • modules/hub/src/test/scala/de/smederee/hub/TestAuthenticationRepository.scala with 4 added and 2 removed lines
  • modules/hub/src/test/scala/de/smederee/hub/config/ServiceConfigTest.scala with 5 added and 5 removed lines
  • modules/hub/src/test/scala/de/smederee/ssh/PublicSshKeyTest.scala with 1 added and 0 removed lines
  • modules/security/src/main/scala/de/smederee/security/PrivateKey.scala with 0 added and 3 removed lines
  • project/plugins.sbt with 1 added and 1 removed lines
  • twirl/src/main/scala/org/http4s/twirl/TwirlInstances.scala with 0 added and 1 removed lines
5 files removed
  • modules/hub/src/main/resources/db/migration/V1__base_tables.sql
  • modules/hub/src/main/resources/db/migration/V2__repository_tables.sql
  • modules/hub/src/main/resources/db/migration/V3__fork_tables.sql
  • modules/hub/src/test/scala/de/smederee/hub/PasswordTest.scala
  • modules/hub/src/test/scala/de/smederee/hub/UserIdTest.scala
2023-03-18 (Sat), 7:48 AM - Jens Grassel - 8ca20b985ee6deb709c3c0f6339d3391595c545f

Fix scalafix issues with the MarkdownRenderer

Summary of changes
1 files modified with 1 lines added and 0 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/MarkdownRenderer.scala with 1 added and 0 removed lines
2023-03-18 (Sat), 5:46 AM - Jens Grassel - 5c8dd6919bc0bb6223855b77d6501e146a219e84

Update jclOverSlf4j to 2.0.7

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • build.sbt with 1 added and 1 removed lines
2023-03-18 (Sat), 5:44 AM - Jens Grassel - 1d399ace5ccd383b040c2f7b50f487be3e3449c4

Update postgresql to 42.6.0

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • build.sbt with 1 added and 1 removed lines
2023-03-18 (Sat), 5:44 AM - Jens Grassel - 726d4be45a35f49c0a2c68a1ca98ff1bbc089aee

Update logback to 1.4.6

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • build.sbt with 1 added and 1 removed lines