-
Notifications
You must be signed in to change notification settings - Fork 3
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
Develop (0.1.0) #94
Merged
Develop (0.1.0) #94
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
dd803dd
Cluster Query Command (#87)
akageun ec7a054
Build Script (#88)
akageun 35342d8
Logback file (#89)
akageun 34dd509
UI Refactoring 4 (#90)
akageun 31cc6d1
Apply API Context (#91)
akageun c4fccb8
Feature/session pool test (#93)
akageun 9aeca36
UI Refactoring
akageun 88e4522
driver bugfix
akageun 5d7cca0
driver bugfix
akageun 246e247
driver bugfix
akageun 442cca7
driver bugfix
akageun 08d9a63
Merge branch 'refs/heads/main' into develop
seungh0 9c81029
Enable CI/CD for develop branch (#99)
seungh0 047911e
Enable Sonarqube (#100)
seungh0 7b77618
Enable SonarQube (#100)
seungh0 6660153
Update README (License) & Auto Assign Code Reviewers (#97)
seungh0 1f3d51c
Update README.md
seungh0 3664460
Refactoring CqlSessionFactory in IntegrationTest (#96)
seungh0 6ae8083
Remove Code Smell (#101)
seungh0 7edb271
Cluster Version Evaluator (#98)
seungh0 34f0a4e
Add Quality Gate section to README.md
seungh0 ae865b9
Bump tough-cookie and node-sass in /cassdio-web/src/main/webapp (#102)
dependabot[bot] 0250602
Enable CI/CD for develop branch
seungh0 f51ff2b
Refactor Code Smell (#104)
seungh0 01a7209
Apply Cluster Session Clear (#106)
akageun f4e8d8d
UI Refactoring
akageun 4079eac
Docs: Update README Typo (#95)
wjdrbs96 d32eb41
Npm to Yarn (#103)
seungh0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* @akageun | ||
* @seungh0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
echo "Cassdio Build!! Start!!!!" | ||
|
||
./gradlew :cassdio-web:clean :cassdio-web:build -Pfrontend=true | ||
|
||
echo "Cassdio Build!! Complete!!!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,9 @@ dependencies { | |
// Spring Boot | ||
implementation("org.springframework.boot:spring-boot-starter") | ||
implementation("org.mapdb:mapdb:3.1.0") | ||
//TODO ClusterFactory 만들어지면 변경 | ||
api("com.datastax.oss:java-driver-core:${datastaxJavaDriverVersion}") | ||
api("com.datastax.oss:java-driver-query-builder:${datastaxJavaDriverVersion}") | ||
api("com.datastax.oss:java-driver-mapper-runtime:${datastaxJavaDriverVersion}") | ||
implementation("com.datastax.oss:java-driver-core:${datastaxJavaDriverVersion}") | ||
implementation("com.datastax.oss:java-driver-query-builder:${datastaxJavaDriverVersion}") | ||
implementation("com.datastax.oss:java-driver-mapper-runtime:${datastaxJavaDriverVersion}") | ||
// implementation("com.datastax.oss:java-driver-core:${datastaxJavaDriverVersion}") | ||
// implementation("com.datastax.oss:java-driver-query-builder:${datastaxJavaDriverVersion}") | ||
// implementation("com.datastax.oss:java-driver-mapper-runtime:${datastaxJavaDriverVersion}") | ||
Comment on lines
8
to
10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 제거해도 좋을거 같네요 |
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/BootstrapProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package kr.hakdang.cassdio.core.domain; | ||
|
||
import kr.hakdang.cassdio.core.domain.cluster.CassdioConsistencyLevel; | ||
import com.datastax.oss.driver.api.core.DefaultConsistencyLevel; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.stereotype.Service; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* BootstrapProvider | ||
* | ||
* @author akageun | ||
* @since 2024-07-30 | ||
*/ | ||
@Slf4j | ||
@Service | ||
public class BootstrapProvider { | ||
|
||
public Map<String, Object> consistencyLevels() { | ||
Map<String, Object> result = new HashMap<>(); | ||
result.put("consistencyLevels", CassdioConsistencyLevel.makeList(DefaultConsistencyLevel.values())); | ||
result.put("defaultConsistencyLevel", CassdioConsistencyLevel.make(DefaultConsistencyLevel.LOCAL_ONE)); //TODO : System Config | ||
|
||
return result; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...dto/response/CassdioConsistencyLevel.java → ...main/cluster/CassdioConsistencyLevel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/CassdioVersionChecker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package kr.hakdang.cassdio.core.domain.cluster; | ||
|
||
import com.datastax.oss.driver.api.core.CqlSession; | ||
import com.datastax.oss.driver.api.core.Version; | ||
import kr.hakdang.cassdio.common.error.NotSupportedCassandraVersionException; | ||
import org.springframework.stereotype.Service; | ||
|
||
/** | ||
* CassdioVersionChecker | ||
* | ||
* @author seungh0 | ||
* @since 2024-07-31 | ||
*/ | ||
@Service | ||
public class CassdioVersionChecker { | ||
|
||
private static final Version MIN_SUPPORT_VERSION = Version.V3_0_0; | ||
|
||
private final ClusterVersionEvaluator clusterVersionEvaluator; | ||
private final ClusterConnector clusterConnector; | ||
|
||
public CassdioVersionChecker(ClusterVersionEvaluator clusterVersionEvaluator, ClusterConnector clusterConnector) { | ||
this.clusterVersionEvaluator = clusterVersionEvaluator; | ||
this.clusterConnector = clusterConnector; | ||
} | ||
|
||
public void verifyCompatibilityCassandraVersion(ClusterConnection connection) { | ||
try (CqlSession session = clusterConnector.makeSession(connection)) { | ||
if (clusterVersionEvaluator.isLessThan(session, MIN_SUPPORT_VERSION)) { | ||
throw new NotSupportedCassandraVersionException("Not supported cassandra with cluster version"); | ||
} | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Core 영역에서만 driver 관련 로직 작성하도록 설정 변경했습니다.