Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tap_schema_manager
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Molinaro
tap_schema_manager
Commits
8d0a3a51
Commit
8d0a3a51
authored
Oct 11, 2018
by
Sonia Zorba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in consistency checking of missing ObsCore. Updated version to 1.3.3
parent
f96c84ff
Pipeline
#138
passed with stage
in 7 seconds
Changes
7
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
5 deletions
+24
-5
README.md
README.md
+3
-0
TASMAN-bom/pom.xml
TASMAN-bom/pom.xml
+1
-1
TASMAN-core/pom.xml
TASMAN-core/pom.xml
+1
-1
TASMAN-core/src/main/java/it/inaf/ia2/tsm/TapSchemaLoader.java
...N-core/src/main/java/it/inaf/ia2/tsm/TapSchemaLoader.java
+15
-0
TASMAN-core/src/main/java/it/inaf/ia2/tsm/TapSchemaMender.java
...N-core/src/main/java/it/inaf/ia2/tsm/TapSchemaMender.java
+1
-0
TASMAN-embedded/pom.xml
TASMAN-embedded/pom.xml
+1
-1
TASMAN-webapp/pom.xml
TASMAN-webapp/pom.xml
+2
-2
No files found.
README.md
View file @
8d0a3a51
...
...
@@ -39,6 +39,9 @@ To do this: download the jar files listed in the following
credits section and run a couple of
`mvn install:install-file`
commands based upond the dependencies description in the _TASMAN-webapp_ _pom.xml_ file.
mvn install:install-file -Dfile=ucidy-1.1.jar -DgroupId=ari.ucidy -DartifactId=ucidy -Dversion=1.1 -Dpackaging=jar
mvn install:install-file -Dfile=unity-1.0.jar -DgroupId=uk.me.nxg -DartifactId=unity -Dversion=1.0 -Dpackaging=jar
## Developers info
For debugging TASMAN-embedded:
...
...
TASMAN-bom/pom.xml
View file @
8d0a3a51
...
...
@@ -4,7 +4,7 @@
<groupId>
it.inaf.ia2.tsm
</groupId>
<artifactId>
tasman-bom
</artifactId>
<version>
1.3.
2
</version>
<version>
1.3.
3
</version>
<packaging>
pom
</packaging>
...
...
TASMAN-core/pom.xml
View file @
8d0a3a51
...
...
@@ -5,7 +5,7 @@
<parent>
<groupId>
it.inaf.ia2.tsm
</groupId>
<artifactId>
tasman-bom
</artifactId>
<version>
1.3.
2
</version>
<version>
1.3.
3
</version>
</parent>
<artifactId>
tasman-core
</artifactId>
...
...
TASMAN-core/src/main/java/it/inaf/ia2/tsm/TapSchemaLoader.java
View file @
8d0a3a51
...
...
@@ -65,12 +65,20 @@ public class TapSchemaLoader {
consistencyChecks
=
new
ConsistencyChecks
();
// If a TAP_SCHEMA schema misses some columns or tables, following
// loadAndCheck* methods will throw an exception. To avoid this, here a
// new method could be added. The method should execute some custom SQL
// calls in order to check the TAP_SCHEMA structure before loading it.
loadAndCheckSchemata
();
loadAndCheckTables
();
loadAndCheckColumns
();
loadAndCheckKeys
();
// Here the checkModel method called on the TAP_SCHEMA schema can check
// only wrong datatypes. If a table misses some columns, an exception
// would have been thrown in previous steps.
checkModel
(
tapSchema
.
getTapSchemaModel
());
checkObscore
();
return
consistencyChecks
;
...
...
@@ -91,6 +99,13 @@ public class TapSchemaLoader {
}
}
/**
* Checks if a schema generated by TASMAN has the right structure according
* to the SchemaModel. This method must be called after TAP_SCHEMA has been
* loaded. For this reason it has some limitations about the checking of the
* TAP_SCHEMA schema itself (it can check datatypes but the structure has to
* be already correct).
*/
private
void
checkModel
(
SchemaModel
schemaModel
)
{
String
schemaName
=
schemaModel
.
getName
();
...
...
TASMAN-core/src/main/java/it/inaf/ia2/tsm/TapSchemaMender.java
View file @
8d0a3a51
...
...
@@ -72,6 +72,7 @@ public class TapSchemaMender {
if
(
tapSchema
.
isHasObscore
())
{
if
(
consistencyChecks
.
isMissingObscore
())
{
tapSchema
.
createAndAddIvoaSchema
();
return
;
}
if
(
consistencyChecks
.
isMissingObscore
()
||
consistencyChecks
.
isObscoreToAdd
())
{
...
...
TASMAN-embedded/pom.xml
View file @
8d0a3a51
...
...
@@ -5,7 +5,7 @@
<parent>
<groupId>
it.inaf.ia2.tsm
</groupId>
<artifactId>
tasman-bom
</artifactId>
<version>
1.3.
2
</version>
<version>
1.3.
3
</version>
</parent>
<artifactId>
tasman-embedded
</artifactId>
...
...
TASMAN-webapp/pom.xml
View file @
8d0a3a51
...
...
@@ -5,7 +5,7 @@
<parent>
<groupId>
it.inaf.ia2.tsm
</groupId>
<artifactId>
tasman-bom
</artifactId>
<version>
1.3.
2
</version>
<version>
1.3.
3
</version>
</parent>
<artifactId>
tasman-webapp
</artifactId>
...
...
@@ -139,7 +139,7 @@
<dependency>
<groupId>
ari.ucidy
</groupId>
<artifactId>
ucidy
</artifactId>
<version>
1.
0
</version>
<version>
1.
1
</version>
</dependency>
<dependency>
<groupId>
javax
</groupId>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment