Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
/* ================== */
"cSpell.words": [
"auditlog",
"classpath",
"compodoc",
"devkit",
"Donte",
Expand All @@ -104,6 +105,7 @@
"protobuf",
"protoc",
"recaptcha",
"Servlet",
"storysource",
"tabuckner",
"tailwindcss",
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion packages/core-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "core-ts",
"version": "1.0.1"
}
}
2 changes: 1 addition & 1 deletion packages/cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"dependencies": {
"client": "*"
}
}
}
2 changes: 1 addition & 1 deletion packages/proto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
"protoc": "^1.1.3",
"ts-proto": "^1.138.0"
}
}
}
3 changes: 0 additions & 3 deletions packages/server/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/

### Vernite ###
vernite-2022.private-key.der
application.properties
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*
* BSD 2-Clause License
*
* Copyright (c) 2022, [Aleksandra Serba, Marcin Czerniak, Bartosz Wawrzyniak, Adrian Antkowiak]
*
*
* Copyright (c) 2023, [Aleksandra Serba, Marcin Czerniak, Bartosz Wawrzyniak, Adrian Antkowiak]
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Expand All @@ -32,15 +32,11 @@
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.servers.Server;

@EnableScheduling
@SpringBootApplication
@ServletComponentScan
@OpenAPIDefinition(servers = @Server(url = "/api"))
public class VerniteApplication {
public static void main(String[] args) {
SpringApplication.run(VerniteApplication.class, args);
}
public static void main(String[] args) {
SpringApplication.run(VerniteApplication.class, args);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* BSD 2-Clause License
*
* Copyright (c) 2023, [Aleksandra Serba, Marcin Czerniak, Bartosz Wawrzyniak, Adrian Antkowiak]
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

package dev.vernite.vernite.common.constants;

import lombok.experimental.UtilityClass;

/**
* Utility class for description constants. Contains all constraints used in
* the project REST API for description validation.
*/
@UtilityClass
public class DescriptionConstants {

/**
* Minimum length of description.
*/
public static final int MIN_LENGTH = 0;

/**
* Maximum length of description.
*/
public static final int MAX_LENGTH = 1000;

/**
* Key for message when description size is not correct.
*/
public static final String SIZE_MESSAGE = "wrongDescriptionSize";

/**
* Key for message when description is null.
*/
public static final String NULL_MESSAGE = "nullDescription";

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* BSD 2-Clause License
*
* Copyright (c) 2023, [Aleksandra Serba, Marcin Czerniak, Bartosz Wawrzyniak, Adrian Antkowiak]
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

package dev.vernite.vernite.common.constants;

import lombok.experimental.UtilityClass;

/**
* Utility class for ID constants. Contains message keys for ID validation.
*/
@UtilityClass
public class IDConstants {

/**
* Key for message when ID is null.
*/
public static final String NULL_MESSAGE = "notNullID";

/**
* Key for message when ID is negative.
*/
public static final String NEGATIVE_MESSAGE = "negativeID";

/**
* Key for message when ID is non-positive.
*/
public static final String NEGATIVE_OR_ZERO_MESSAGE = "nonPositiveID";

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* BSD 2-Clause License
*
* Copyright (c) 2023, [Aleksandra Serba, Marcin Czerniak, Bartosz Wawrzyniak, Adrian Antkowiak]
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

package dev.vernite.vernite.common.constants;

import lombok.experimental.UtilityClass;

/**
* Utility class for name constants. Contains all constants used in the
* project REST API for name validation.
*/
@UtilityClass
public class NameConstants {

/**
* Minimum length of name.
*/
public static final int MIN_LENGTH = 1;

/**
* Maximum length of name.
*/
public static final int MAX_LENGTH = 50;

/**
* Maximum length of long name.
*/
public static final int MAX_LONG_LENGTH = 100;

/**
* Key for message when name size is not correct.
*/
public static final String SIZE_MESSAGE = "wrongNameSize";

/**
* Key for message when name is blank.
*/
public static final String BLANK_MESSAGE = "blankName";

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/*
* BSD 2-Clause License
*
* Copyright (c) 2023, [Aleksandra Serba, Marcin Czerniak, Bartosz Wawrzyniak, Adrian Antkowiak]
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

package dev.vernite.vernite.common.constants;

import lombok.experimental.UtilityClass;

/**
* Utility class containing all message keys for not null validation on database
* relations.
*/
@UtilityClass
public class NullMessages {

/**
* Key for message when project is null.
*/
public static final String PROJECT = "nullProject";

/**
* Key for message when workspace id is null.
*/
public static final String WORKSPACE_ID = "nullWorkspaceId";

/**
* Key for message when member is null.
*/
public static final String MEMBER = "nullMember";

/**
* Key for message when user is null.
*/
public static final String USER = "nullUser";

/**
* Key for message when status is null.
*/
public static final String STATUS = "nullStatus";

/**
* Key for message when counter is null.
*/
public static final String COUNTER = "nullCounter";

/**
* Key for message when sprint is null.
*/
public static final String SPRINT = "nullSprint";

/**
* Key for message when release is null.
*/
public static final String RELEASE = "nullRelease";

/**
* Key for message when meeting is null.
*/
public static final String MEETING = "nullMeeting";

}
Loading