From f73094459288c6051ffe14fe13d0326e46504f7c Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Tue, 27 Dec 2022 10:53:12 -0800 Subject: [PATCH] chore: code cleanup --- .editorconfig | 1 + .idea/codeStyles/Project.xml | 6 +- .idea/inspectionProfiles/Project_Default.xml | 1 - .../ResizableImageInlineParserExtension.java | 64 +- .../io/papermc/hangar/HangarApplication.java | 2 +- .../io/papermc/hangar/HangarComponent.java | 29 +- .../hangar/JdbiBeanFactoryPostProcessor.java | 45 +- .../io/papermc/hangar/JdbiDaoBeanFactory.java | 8 +- .../io/papermc/hangar/config/JDBIConfig.java | 32 +- .../papermc/hangar/config/SwaggerConfig.java | 131 ++-- .../io/papermc/hangar/config/WebConfig.java | 109 ++-- .../hangar/config/hangar/ApiConfig.java | 3 +- .../hangar/config/hangar/HangarConfig.java | 46 +- .../config/hangar/HangarSecurityConfig.java | 2 - .../hangar/config/hangar/ProjectsConfig.java | 42 +- .../hangar/config/hangar/StorageConfig.java | 13 +- .../jackson/HangarAnnotationIntrospector.java | 11 +- .../config/jackson/RequiresPermission.java | 1 - .../config/jackson/StringSanitizerModule.java | 7 +- .../controller/ApplicationController.java | 75 ++- .../hangar/controller/LoginController.java | 110 ++-- .../hangar/controller/SitemapController.java | 10 +- .../controller/api/v1/ApiKeysController.java | 16 +- .../api/v1/AuthenticationController.java | 6 +- .../api/v1/PermissionsController.java | 37 +- .../controller/api/v1/ProjectsController.java | 48 +- .../controller/api/v1/UsersController.java | 31 +- .../controller/api/v1/VersionsController.java | 25 +- .../api/v1/interfaces/IApiKeysController.java | 59 +- .../interfaces/IAuthenticationController.java | 16 +- .../v1/interfaces/IPermissionsController.java | 63 +- .../v1/interfaces/IProjectsController.java | 130 ++-- .../api/v1/interfaces/IUsersController.java | 98 +-- .../v1/interfaces/IVersionsController.java | 81 ++- .../hangar/controller/extras/ApiUtils.java | 6 +- .../controller/extras/RobotsBuilder.java | 18 +- .../converters/OffsetDateTimeConverter.java | 5 +- .../StringToEnumConverterFactory.java | 17 +- .../controller/extras/pagination/Filter.java | 12 +- .../extras/pagination/FilterRegistry.java | 3 +- .../controller/extras/pagination/Sorter.java | 8 +- .../extras/pagination/SorterRegistry.java | 20 +- .../annotations/ApplicableFilters.java | 4 +- .../annotations/ApplicableSorters.java | 1 - .../filters/log/LogActionFilter.java | 20 +- .../pagination/filters/log/LogPageFilter.java | 18 +- .../filters/log/LogProjectFilter.java | 16 +- .../filters/log/LogSubjectFilter.java | 14 +- .../pagination/filters/log/LogUserFilter.java | 21 +- .../filters/log/LogVersionFilter.java | 20 +- .../filters/projects/ProjectAuthorFilter.java | 20 +- .../projects/ProjectCategoryFilter.java | 28 +- .../projects/ProjectLicenseFilter.java | 31 +- .../projects/ProjectMCVersionFilter.java | 24 +- .../projects/ProjectPlatformFilter.java | 28 +- .../filters/projects/ProjectQueryFilter.java | 22 +- .../versions/VersionChannelFilter.java | 26 +- .../versions/VersionPlatformFilter.java | 28 +- .../filters/versions/VersionTagFilter.java | 24 +- .../resolvers/RequestPaginationResolver.java | 4 +- .../model/HangarModelPathVarResolver.java | 9 +- .../path/model/ProjectTableResolver.java | 4 +- .../model/ProjectVersionTableResolver.java | 4 +- .../path/model/UserTableResolver.java | 2 +- .../controller/internal/ApiKeyController.java | 27 +- .../internal/BackendDataController.java | 1 - .../internal/ChannelController.java | 27 +- .../internal/DiscourseController.java | 12 +- .../internal/FakeDataController.java | 14 +- .../internal/HangarUserController.java | 104 ++-- .../internal/OrganizationController.java | 86 +-- .../controller/internal/PaypalController.java | 14 +- .../controller/internal/ReviewController.java | 40 +- .../internal/VersionController.java | 73 +-- .../admin/AdminActivityController.java | 13 +- .../admin/AdminApprovalController.java | 22 +- .../internal/admin/AdminController.java | 46 +- .../internal/projects/FlagController.java | 30 +- .../projects/ProjectAdminController.java | 18 +- .../internal/projects/ProjectController.java | 115 ++-- .../projects/ProjectPageController.java | 43 +- .../validations/AtLeastOneNotNull.java | 27 +- .../controller/validations/Validate.java | 13 +- .../controller/validations/Validations.java | 29 +- .../papermc/hangar/db/customtypes/JSONB.java | 42 +- .../hangar/db/customtypes/JobState.java | 15 +- .../hangar/db/customtypes/PGLoggedAction.java | 17 +- .../hangar/db/customtypes/RoleCategory.java | 21 +- .../papermc/hangar/db/dao/PermissionsDAO.java | 17 +- .../io/papermc/hangar/db/dao/UsersDAO.java | 86 ++- .../hangar/db/dao/internal/ActivityDAO.java | 39 +- .../db/dao/internal/HangarApiKeysDAO.java | 3 +- .../dao/internal/HangarNotificationsDAO.java | 55 +- .../dao/internal/HangarOrganizationsDAO.java | 25 +- .../db/dao/internal/HangarStatsDAO.java | 43 +- .../db/dao/internal/HangarUsersDAO.java | 16 +- .../hangar/db/dao/internal/HealthDAO.java | 85 ++- .../db/dao/internal/LoggedActionsDAO.java | 9 +- .../HangarProjectFlagNofiticationsDAO.java | 5 +- .../projects/HangarProjectFlagsDAO.java | 39 +- .../projects/HangarProjectNotesDAO.java | 9 +- .../projects/HangarProjectPagesDAO.java | 35 +- .../projects/HangarProjectsAdminDAO.java | 5 +- .../internal/projects/HangarProjectsDAO.java | 131 ++-- .../hangar/db/dao/internal/table/JobsDAO.java | 9 +- .../dao/internal/table/NotificationsDAO.java | 15 +- .../dao/internal/table/OrganizationDAO.java | 15 +- .../internal/table/PlatformVersionDAO.java | 4 +- .../hangar/db/dao/internal/table/UserDAO.java | 16 +- .../db/dao/internal/table/VisibilityDAO.java | 43 +- .../table/auth/UserOauthTokenDAO.java | 3 +- .../table/auth/UserRefreshTokenDAO.java | 3 +- .../internal/table/auth/UserSignOnDAO.java | 2 +- .../table/members/OrganizationMembersDAO.java | 12 +- .../table/projects/PinnedProjectDAO.java | 2 - .../table/projects/ProjectChannelsDAO.java | 3 +- .../table/projects/ProjectFlagsDAO.java | 3 +- .../table/projects/ProjectPagesDAO.java | 5 +- .../internal/table/projects/ProjectsDAO.java | 33 +- .../internal/table/roles/GlobalRolesDAO.java | 19 +- .../table/roles/OrganizationRolesDAO.java | 27 +- .../internal/table/roles/ProjectRolesDAO.java | 5 +- .../db/dao/internal/table/roles/RolesDAO.java | 2 +- .../stats/ProjectVersionDownloadStatsDAO.java | 5 +- .../internal/table/stats/ProjectViewsDAO.java | 5 +- .../versions/ProjectVersionReviewsDAO.java | 11 +- .../table/versions/ProjectVersionsDAO.java | 43 +- .../ProjectVersionDependenciesDAO.java | 8 +- ...ProjectVersionPlatformDependenciesDAO.java | 13 +- .../ProjectVersionDownloadWarningsDAO.java | 17 +- .../internal/versions/HangarReviewsDAO.java | 15 +- .../internal/versions/HangarVersionsDAO.java | 143 +++-- .../hangar/db/dao/v1/ProjectsApiDAO.java | 45 +- .../papermc/hangar/db/dao/v1/UsersApiDAO.java | 183 +++--- .../hangar/db/dao/v1/VersionsApiDAO.java | 304 +++++----- .../hangar/db/extras/BindPagination.java | 34 +- .../db/mappers/LogActionColumnMapper.java | 5 +- .../hangar/db/mappers/PermissionMapper.java | 5 +- .../factories/JoinableRowMapperFactory.java | 27 +- .../factories/PairRowMapperFactory.java | 31 +- .../factories/RoleColumnMapperFactory.java | 5 +- .../hangar/exceptions/HangarApiException.java | 10 +- .../exceptions/InternalHangarException.java | 4 +- ...odArgumentNotValidExceptionSerializer.java | 11 +- .../exceptions/MultiHangarApiException.java | 9 +- .../hangar/exceptions/WebHookException.java | 2 +- .../HangarEntityExceptionHandler.java | 20 +- .../io/papermc/hangar/model/Announcement.java | 26 +- .../java/io/papermc/hangar/model/Model.java | 4 +- .../io/papermc/hangar/model/api/ApiKey.java | 9 +- .../hangar/model/api/PaginatedResult.java | 12 +- .../papermc/hangar/model/api/Pagination.java | 8 +- .../io/papermc/hangar/model/api/User.java | 45 +- .../hangar/model/api/auth/ApiSession.java | 12 +- .../model/api/auth/RefreshResponse.java | 20 +- .../api/permissions/PermissionCheck.java | 6 +- .../api/permissions/UserPermissions.java | 17 +- .../model/api/project/DayProjectStats.java | 12 +- .../model/api/project/ProjectCompact.java | 29 +- .../api/project/ProjectDonationSettings.java | 16 +- .../model/api/project/ProjectLicense.java | 26 +- .../model/api/project/ProjectMember.java | 7 +- .../model/api/project/ProjectNamespace.java | 25 +- .../model/api/project/ProjectSettings.java | 72 +-- .../api/project/ProjectSortingStrategy.java | 16 +- .../model/api/project/ProjectStats.java | 28 +- .../hangar/model/api/project/UserActions.java | 16 +- .../api/project/version/PluginDependency.java | 45 +- .../model/api/project/version/Version.java | 2 +- .../api/project/version/VersionCompact.java | 2 +- .../api/project/version/VersionStats.java | 8 +- .../hangar/model/api/requests/FlagForm.java | 23 +- .../model/api/requests/RequestPagination.java | 27 +- .../model/api/requests/SessionProperties.java | 12 +- .../hangar/model/common/ChannelFlag.java | 2 +- .../io/papermc/hangar/model/common/Color.java | 12 +- .../hangar/model/common/NamedPermission.java | 19 +- .../hangar/model/common/Permission.java | 66 +-- .../hangar/model/common/PermissionType.java | 11 +- .../papermc/hangar/model/common/Platform.java | 27 +- .../papermc/hangar/model/common/Prompt.java | 21 +- .../model/common/projects/Category.java | 32 +- .../model/common/projects/FlagReason.java | 9 +- .../model/common/projects/ReviewState.java | 14 +- .../model/common/projects/Visibility.java | 20 +- .../hangar/model/common/roles/GlobalRole.java | 42 +- .../model/common/roles/OrganizationRole.java | 39 +- .../model/common/roles/ProjectRole.java | 41 +- .../hangar/model/common/roles/Role.java | 8 +- .../io/papermc/hangar/model/db/JobTable.java | 43 +- .../hangar/model/db/NotificationTable.java | 19 +- .../hangar/model/db/OrganizationTable.java | 25 +- .../hangar/model/db/PlatformVersionTable.java | 17 +- .../io/papermc/hangar/model/db/Table.java | 11 +- .../io/papermc/hangar/model/db/UserTable.java | 72 ++- .../hangar/model/db/auth/ApiKeyTable.java | 29 +- .../model/db/auth/UserOauthTokenTable.java | 24 +- .../model/db/auth/UserRefreshToken.java | 29 +- .../hangar/model/db/auth/UserSignOnTable.java | 19 +- .../model/db/log/LoggedActionTable.java | 25 +- .../log/LoggedActionsOrganizationTable.java | 9 +- .../model/db/log/LoggedActionsPageTable.java | 13 +- .../db/log/LoggedActionsProjectTable.java | 9 +- .../model/db/log/LoggedActionsUserTable.java | 9 +- .../db/log/LoggedActionsVersionTable.java | 13 +- .../hangar/model/db/members/MemberTable.java | 4 +- .../db/members/OrganizationMemberTable.java | 8 +- .../model/db/members/ProjectMemberTable.java | 4 +- .../db/projects/ProjectChannelTable.java | 5 +- .../ProjectFlagNotificationTable.java | 8 +- .../model/db/projects/ProjectFlagTable.java | 43 +- .../db/projects/ProjectHomePageTable.java | 17 +- .../model/db/projects/ProjectNoteTable.java | 21 +- .../model/db/projects/ProjectPageTable.java | 37 +- .../model/db/projects/ProjectTable.java | 154 +++-- .../model/db/roles/ExtendedRoleTable.java | 31 +- .../model/db/roles/GlobalRoleTable.java | 20 +- .../model/db/roles/OrganizationRoleTable.java | 29 +- .../model/db/roles/ProjectRoleTable.java | 17 +- .../hangar/model/db/roles/RoleTable.java | 53 +- .../model/db/stats/IndividualTable.java | 23 +- ...ProjectVersionDownloadIndividualTable.java | 17 +- .../db/stats/ProjectViewIndividualTable.java | 13 +- .../db/versions/ProjectVersionTable.java | 68 +-- .../ProjectVersionDependencyTable.java | 37 +- ...ProjectVersionPlatformDependencyTable.java | 23 +- .../dependencies/VersionDependencyTable.java | 11 +- .../ProjectVersionDownloadTable.java | 10 +- .../ProjectVersionDownloadWarningTable.java | 48 +- .../ProjectVersionPlatformDownloadTable.java | 6 +- .../ProjectVersionUnsafeDownloadTable.java | 17 +- .../ProjectVersionReviewMessageTable.java | 27 +- .../reviews/ProjectVersionReviewTable.java | 23 +- .../ProjectVersionVisibilityChangeTable.java | 13 +- .../ProjectVisibilityChangeTable.java | 13 +- .../db/visibility/VisibilityChangeTable.java | 29 +- .../model/internal/ChangeAvatarToken.java | 26 +- .../model/internal/HangarOrganization.java | 17 +- .../hangar/model/internal/Joinable.java | 1 - .../hangar/model/internal/admin/DayStats.java | 32 +- .../internal/admin/activity/Activity.java | 8 +- .../internal/admin/activity/FlagActivity.java | 11 +- .../admin/activity/ReviewActivity.java | 19 +- .../admin/health/MissingFileCheck.java | 24 +- .../admin/health/UnhealthyProject.java | 27 +- .../api/requests/CreateAPIKeyForm.java | 22 +- .../api/requests/CreateOrganizationForm.java | 10 +- .../api/requests/EditMembersForm.java | 24 +- .../internal/api/requests/StringContent.java | 9 +- .../internal/api/requests/UserSettings.java | 16 +- .../admin/ChangePlatformVersionsForm.java | 5 +- .../admin/ReportNotificationForm.java | 2 +- .../api/requests/projects/ChannelForm.java | 8 +- .../requests/projects/EditChannelForm.java | 5 +- .../api/requests/projects/NewProjectForm.java | 24 +- .../api/requests/projects/NewProjectPage.java | 18 +- .../projects/ProjectSettingsForm.java | 26 +- .../projects/VisibilityChangeForm.java | 16 +- .../api/requests/versions/ReviewMessage.java | 13 +- .../versions/UpdatePlatformVersions.java | 21 +- .../versions/UpdatePluginDependencies.java | 20 +- .../internal/api/responses/HealthReport.java | 25 +- .../api/responses/PossibleProjectOwner.java | 20 +- .../internal/discourse/DiscourseError.java | 27 +- .../internal/discourse/DiscoursePost.java | 69 ++- .../internal/job/DeleteDiscourseTopicJob.java | 39 +- .../hangar/model/internal/job/Job.java | 70 +-- .../model/internal/job/JobException.java | 4 +- .../internal/job/PostDiscourseReplyJob.java | 66 +-- .../job/UpdateDiscourseProjectTopicJob.java | 39 +- .../job/UpdateDiscourseVersionPostJob.java | 39 +- .../internal/logs/HangarLoggedAction.java | 53 +- .../hangar/model/internal/logs/LogAction.java | 13 +- .../model/internal/logs/LoggedAction.java | 11 +- .../internal/logs/contexts/LogContext.java | 9 +- .../logs/contexts/LogTableConstructor.java | 3 +- .../logs/contexts/OrganizationContext.java | 6 +- .../internal/logs/contexts/PageContext.java | 8 +- .../logs/contexts/ProjectContext.java | 6 +- .../internal/logs/contexts/UserContext.java | 8 +- .../logs/contexts/VersionContext.java | 8 +- .../internal/logs/viewmodels/LogPage.java | 16 +- .../internal/logs/viewmodels/LogProject.java | 16 +- .../internal/logs/viewmodels/LogSubject.java | 12 +- .../internal/logs/viewmodels/LogVersion.java | 19 +- .../projects/ExtendedProjectPage.java | 9 +- .../internal/projects/HangarChannel.java | 7 +- .../internal/projects/HangarProject.java | 2 +- .../projects/HangarProjectApproval.java | 24 +- .../internal/projects/HangarProjectFlag.java | 23 +- .../HangarProjectFlagNotification.java | 2 +- .../internal/projects/HangarProjectNote.java | 11 +- .../internal/projects/HangarProjectPage.java | 23 +- .../model/internal/sso/TokenResponse.java | 51 +- .../hangar/model/internal/sso/Traits.java | 2 +- .../model/internal/sso/URLWithNonce.java | 12 +- .../model/internal/user/HangarUser.java | 67 ++- .../model/internal/user/JoinableMember.java | 16 +- .../user/notifications/HangarInvite.java | 15 +- .../notifications/HangarNotification.java | 33 +- .../user/notifications/NotificationType.java | 3 +- .../model/internal/versions/HangarReview.java | 39 +- .../versions/HangarReviewQueueEntry.java | 67 ++- .../internal/versions/HangarVersion.java | 3 +- .../internal/versions/LastDependencies.java | 1 - .../internal/versions/MultipartFileOrUrl.java | 2 +- .../internal/versions/PendingVersion.java | 64 +- .../internal/versions/PlatformDependency.java | 13 +- .../hangar/model/loggable/Loggable.java | 5 +- .../model/loggable/OrganizationLoggable.java | 3 +- .../model/loggable/ProjectLoggable.java | 3 +- .../security/HangarMetadataSources.java | 46 +- .../hangar/security/HangarUnanimousBased.java | 17 +- .../hangar/security/annotations/Anyone.java | 3 +- .../annotations/HangarDecisionVoter.java | 58 +- .../hangar/security/annotations/LoggedIn.java | 3 +- .../annotations/currentuser/CurrentUser.java | 2 + .../CurrentUserMetadataExtractor.java | 13 +- .../currentuser/CurrentUserVoter.java | 14 +- .../PermissionRequiredMetadataExtractor.java | 29 +- .../permission/PermissionRequiredVoter.java | 43 +- .../annotations/ratelimit/RateLimit.java | 3 +- .../ratelimit/RateLimitInterceptor.java | 25 +- .../annotations/unlocked/Unlocked.java | 3 +- .../unlocked/UnlockedMetadataExtractor.java | 12 +- .../annotations/unlocked/UnlockedVoter.java | 7 +- .../visibility/VisibilityRequired.java | 6 +- .../VisibilityRequiredMetadataExtractor.java | 15 +- .../visibility/VisibilityRequiredVoter.java | 21 +- .../HangarAuthenticationEntryPoint.java | 15 +- .../HangarAuthenticationFilter.java | 47 +- .../HangarAuthenticationProvider.java | 10 +- .../HangarAuthenticationToken.java | 25 +- .../authentication/HangarPrincipal.java | 36 +- .../api/HangarApiPrincipal.java | 10 +- .../configs/MethodSecurityConfig.java | 27 +- .../security/configs/SecurityConfig.java | 42 +- .../papermc/hangar/service/APIKeyService.java | 42 +- .../hangar/service/AuthenticationService.java | 40 +- .../hangar/service/PermissionService.java | 57 +- .../papermc/hangar/service/TokenService.java | 121 ++-- .../hangar/service/ValidationService.java | 2 +- .../service/api/APIAuthenticationService.java | 24 +- .../service/api/ProjectsApiService.java | 38 +- .../hangar/service/api/UsersApiService.java | 78 ++- .../service/api/VersionsApiService.java | 22 +- .../service/internal/BucketService.java | 21 +- .../service/internal/FakeDataService.java | 74 +-- .../hangar/service/internal/JobService.java | 157 ++--- .../service/internal/MarkdownService.java | 49 +- .../service/internal/PaypalService.java | 93 ++- .../service/internal/PlatformService.java | 21 +- .../service/internal/SitemapService.java | 47 +- .../internal/UserActionLogService.java | 33 +- .../internal/admin/ActivityService.java | 13 +- .../service/internal/admin/FlagService.java | 50 +- .../service/internal/admin/HealthService.java | 17 +- .../service/internal/admin/StatService.java | 77 ++- .../internal/defaults/PopulationService.java | 29 +- .../internal/discourse/DiscourseApi.java | 80 ++- .../discourse/DiscourseFormatter.java | 53 +- .../internal/discourse/DiscourseService.java | 72 ++- .../service/internal/file/FileService.java | 4 +- .../service/internal/file/S3FileService.java | 38 +- .../organizations/OrganizationFactory.java | 37 +- .../organizations/OrganizationService.java | 39 +- .../internal/perms/members/MemberService.java | 75 ++- .../members/OrganizationMemberService.java | 37 +- .../perms/members/ProjectMemberService.java | 27 +- .../perms/roles/GlobalRoleService.java | 13 +- .../perms/roles/OrganizationRoleService.java | 2 +- .../perms/roles/ProjectRoleService.java | 2 +- .../internal/perms/roles/RoleService.java | 37 +- .../internal/projects/ChannelService.java | 51 +- .../projects/PinnedProjectService.java | 3 +- .../projects/ProjectAdminService.java | 26 +- .../internal/projects/ProjectFactory.java | 12 +- .../internal/projects/ProjectNoteService.java | 13 +- .../internal/projects/ProjectPageService.java | 94 +-- .../internal/projects/ProjectService.java | 135 ++--- .../internal/users/NotificationService.java | 55 +- .../service/internal/users/UserService.java | 61 +- .../internal/users/invites/InviteService.java | 85 ++- .../invites/OrganizationInviteService.java | 17 +- .../users/invites/ProjectInviteService.java | 20 +- .../JoinableNotificationService.java | 27 +- .../internal/versions/DownloadService.java | 88 +-- .../versions/PinnedVersionService.java | 4 +- .../internal/versions/ReviewService.java | 107 ++-- .../versions/VersionDependencyService.java | 65 +- .../internal/versions/VersionFactory.java | 150 ++--- .../internal/versions/VersionService.java | 70 ++- .../plugindata/PluginDataService.java | 30 +- .../versions/plugindata/PluginFileData.java | 33 +- .../plugindata/PluginFileWithData.java | 11 +- .../plugindata/handler/FileTypeHandler.java | 52 +- .../handler/PaperFileTypeHandler.java | 36 +- .../handler/VelocityFileTypeHandler.java | 23 +- .../handler/WaterfallFileTypeHandler.java | 28 +- .../ProjectVersionVisibilityService.java | 29 +- .../visibility/ProjectVisibilityService.java | 38 +- .../visibility/VisibilityService.java | 36 +- .../papermc/hangar/tasks/JobUpdateTask.java | 4 +- .../papermc/hangar/util/BBCodeConverter.java | 93 ++- .../io/papermc/hangar/util/CryptoUtils.java | 30 +- .../io/papermc/hangar/util/FileUtils.java | 26 +- .../io/papermc/hangar/util/HtmlSanitizer.java | 6 +- .../io/papermc/hangar/util/RequestUtil.java | 30 +- .../hangar/util/StaticContextAccessor.java | 35 +- .../io/papermc/hangar/util/StringUtils.java | 33 +- backend/src/main/resources/application.yml | 5 +- .../db/migration/R__01_trust_views.sql | 60 +- .../db/migration/R__02_home_view.sql | 126 ++-- .../migration/R__03_logged_actions_view.sql | 265 +++++---- .../db/migration/R__04_pinned_views.sql | 158 ++--- .../db/migration/R__05_functions_triggers.sql | 36 +- .../resources/db/migration/V1.0.0__init.sql | 559 +++++++++--------- .../db/migration/V1.0.1__fix_org_admin.sql | 9 +- .../db/migration/V1.1.0__user_history.sql | 14 +- .../dao/internal/HangarStatsDAO/getStats.sql | 15 +- .../hangar/HangarApplicationTests.java | 3 +- .../api/v1/PermissionsControllerTest.java | 24 +- .../service/internal/PaypalServiceTest.java | 9 +- .../plugindata/PluginDataServiceTest.java | 45 +- .../hangar/util/BBCodeConverterTest.java | 101 ++-- .../hangar/util/FormattedVersionsTest.java | 13 +- .../papermc/hangar/util/RequestUtilTest.java | 2 +- .../papermc/hangar/util/StringUtilsTest.java | 17 +- .../db/dummy_data/V900__fakeUser.sql | 28 +- .../V901__permissionsControllerTest.sql | 80 ++- backend/src/test/resources/logback-test.xml | 2 +- 431 files changed, 6520 insertions(+), 6875 deletions(-) diff --git a/.editorconfig b/.editorconfig index 9af3db8d..49e0c1b5 100644 --- a/.editorconfig +++ b/.editorconfig @@ -30,6 +30,7 @@ ij_java_layout_static_imports_separately = true ij_java_generate_final_locals = true ij_java_generate_final_parameters = true ij_java_continuation_indent_size = 4 +ij_java_record_components_wrap = on_every_item [{*.yml, *.yaml}] indent_size = 2 diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 5d9be4f3..b914eaf2 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -11,7 +11,6 @@