Commit Graph

493 Commits

Author SHA1 Message Date
Giri Dandu aad71d3d0c Fix the step definitons rearrange all model steps to appropriate files and
upgrade gradle to 2.3
 - Use model helper to create the deployment
 - Upgrage gradle to 2.3 in hope of fixing the codenarc dependency issue
   but it didn't make any difference
 - Fixes #108
2015-04-06 14:01:23 -04:00
maheshkelkar b590942523 Merge pull request #141 from maheshkelkar/issues/126-allow-config-changes
Allow Models-config to change (configReload) while deployments are in progress
2015-04-06 13:13:59 -04:00
Mahesh V Kelkar 403f5a2540 Merge branch 'master' into issues/126-allow-config-changes
Conflicts:
	features/api/config.feature
	src/main/groovy/deploydb/DeployDBApp.groovy
2015-04-06 12:01:06 -04:00
Giri Dandu d68b57b94e Merge branch 'master' into issue-108-code-cleanup
Conflicts:
	docs/html5/restapi/report.js
2015-04-06 11:39:32 -04:00
Giri Dandu 81d118d551 Fix the spurious error messages from codenarc
- Fix the codenarc plugin dependency
 - Fixes #108
2015-04-06 11:31:17 -04:00
Giri Dandu 2c9338e0f4 Code clean up
- Environment model contains a webhook not many
 - Fixes #108
2015-04-06 08:38:41 -04:00
R. Tyler Croy 1f4d720a80 Merge pull request #147 from GiriDandu/issue-136-fix-startup-with-example-and-error-messages
Fix the startup help message with examples on how to run and do database migration.
2015-04-04 11:38:06 -07:00
Giri Dandu 937f53692e Fix the startup help message with example on how to run and do database
migration.
 - Fixes #136
2015-04-03 18:20:37 -04:00
GiriDandu b2c497590b Merge pull request #146 from GiriDandu/issue-139-make-example-config-useful
Fix the incorrect links the documentation
2015-04-03 17:42:25 -04:00
Giri Dandu 60f32a9b5e Fix the incorrect links the documentation
- Fixes #139
2015-04-03 15:31:12 -04:00
GiriDandu a6cc80dba6 Merge pull request #140 from GiriDandu/issue-139-make-example-config-useful
move the example configuration into "example" directory
2015-04-03 12:19:19 -04:00
Giri Dandu b0f40f4d09 Merge branch 'master' into issue-139-make-example-config-useful
Conflicts:
	docs/html5/restapi/report.js
2015-04-03 11:48:05 -04:00
Giri Dandu 97e2cfd276 Update after code review comments
- Fixes #139
2015-04-03 11:32:06 -04:00
Mahesh V Kelkar bf6e5d9787 Using VARCHAR(64) for checksum in modelConfigs and flows table
Other code review changes

References #126 and #141
2015-04-03 11:17:31 -04:00
R. Tyler Croy e796eba7bb Merge pull request #138 from GiriDandu/issue-134-fetch-deployment-by-artifact-id
Issue 134 fetch deployment by artifact
2015-04-02 19:21:12 -07:00
Giri Dandu 594ca53d16 Update after code review comments
- Groovy the steps code to create test deployments
 - Add spock tests for DeploymentDAO
 - Fixes #134
2015-04-02 18:02:21 -04:00
Giri Dandu c825a405b0 Merge branch 'master' into issue-134-fetch-deployment-by-artifact-id
Conflicts:
	docs/html5/restapi/report.js
2015-04-02 17:34:11 -04:00
R. Tyler Croy 70b430e52e Merge pull request #144 from GiriDandu/issue-142-fix-bintray-jdk8-dependency
Make the project target compatable with jdk 7
2015-04-02 14:04:32 -07:00
maheshkelkar 4525ee5ffc Merge pull request #135 from maheshkelkar/doc-change-for-config
Added docs for DeployDB launch and models configuration
2015-04-02 16:59:38 -04:00
Giri Dandu a20985ff83 Make the project target compatable with jdk 7
- Fixes #142
2015-04-02 16:37:00 -04:00
Mahesh V Kelkar 737080af09 Explain diff betw reloading changed config and loading config during version upgrade
References #135
2015-04-02 16:35:02 -04:00
Giri Dandu a50a794c22 Update after code review comments
- Use correct yaml during "gradle run"
 - Fixes #139
2015-04-02 16:24:17 -04:00
Mahesh V Kelkar d1cce09796 Merge branch 'master' into issues/126-allow-config-changes 2015-04-02 16:01:02 -04:00
Mahesh V Kelkar ac04cc2f44 Allow Models-config to change (configReload) while deployments are in progress
- Added ModelConfig model, DB table, etc to keep track of old configs.

- Added checksum calculations to keep track of each configReload
  iteration. This calculation reads all the directories and files
  in a deterministic order and computes checksum, which should remain
  same for given config on any platform.

- The checksum is stored in the DeployDB app object as well Flow object
  in order to associate them with the given iteration of config.

- On the subsequent Flow/Deployment transitions, if checksum from the
  Flow matches with that in the App object, then in-memory (i.e. registry)
  Model objects are used. Otherwise Model objects are read from the
  ModelConfig objects.

- In loadConfigModels, moved code repetitions such as loading from
  string, inserting into registry, checksum calculations, etc.
  to common function

- Added cucumber and spock tests to validate the code.

References #126
2015-04-02 15:58:58 -04:00
Giri Dandu c6d0c334ea move the example configuration into "example" directory
- Fixes #139
2015-04-02 12:42:24 -04:00
Giri Dandu ca68820939 Use the correct criteria to fetch the deployments
- Update the cucumber test to fetch multiple deployments
 - Fixes #134
2015-04-02 10:19:04 -04:00
Giri Dandu f7ad5777a6 Merge branch 'master' into issue-134-fetch-deployment-by-artifact-id
Conflicts:
	features/api/deployment/reading.feature
2015-04-01 15:55:24 -04:00
GiriDandu b573f49474 Merge pull request #133 from GiriDandu/issue-117-api-get-deployments-by-artifact-id
Add API to fetch deployment by artifact id
2015-04-01 15:44:56 -04:00
GiriDandu 839652b9d6 Merge pull request #132 from GiriDandu/issue-129-generic-query-to-fectch-artifacts
Issue 129 generic query to fectch artifacts
2015-04-01 15:17:28 -04:00
Giri Dandu c6a6930a52 Update after code review comments
- Remove unnecessary tags and make scenario name consistent
 - Fixes #117
2015-04-01 15:14:47 -04:00
Giri Dandu ec3e1c79a5 Update after review comments.
- Make the variable names more meanigful
 - Make default paramters for pagination to deal with expected
   large number of artifacts in the system
 - Fixes #129
2015-04-01 15:01:32 -04:00
Giri Dandu 1d846718e4 Fetch deployments for a given artifact id
- The fetch operation is not working properly, will have to rework the logic
 - Fixes #134
2015-04-01 13:43:14 -04:00
Mahesh V Kelkar 62cbeb27af Added docs for DeployDB launch and models configuration 2015-04-01 10:23:49 -04:00
Giri Dandu 6f92532474 Add API to fetch deployment by artifact id
- Fixes #117
2015-03-31 14:40:34 -04:00
Giri Dandu 255e113b34 Add pagination support for "query" API.
- Fixes #129
2015-03-31 12:20:41 -04:00
Giri Dandu 5f5af72610 Add "query" support for fetching artifacts based on name, group or version.
- Fixes #129
2015-03-31 11:39:10 -04:00
GiriDandu 0be5c7e98b Merge pull request #128 from GiriDandu/issue-118-artifact-by-version-name
Add API support to fetch artifacts by query parameter
2015-03-31 09:36:32 -04:00
GiriDandu 3b5ae31d1a Merge pull request #131 from rtyler/issues/130-upload-correct-archives
Add support for publishing and assembling the appropriate artifacts
2015-03-31 09:35:21 -04:00
R. Tyler Croy 77842b891a Add support for publishing and assembling the appropriate shadow artifacts for release
This commit also includes a minor version change, so I can publish the newly
minted artifacts to bintray properly

Fixes #130
2015-03-31 06:21:37 -07:00
R. Tyler Croy 2da87558d6 Add release names to changelog 2015-03-30 15:16:14 -07:00
R. Tyler Croy 6c87f26267 Update changelog for 0.2.0 release 2015-03-30 15:09:35 -07:00
R. Tyler Croy 5578a36323 Bump version for release 2015-03-30 14:54:39 -07:00
Giri Dandu 7606219cb6 Add API support to fetch artifacts by query parameter
- Fixes #118
2015-03-30 16:15:56 -04:00
R. Tyler Croy 6e65b32c62 Merge pull request #122 from maheshkelkar/issues/44-reload-config
Added configReload admin task to reload the config, if no deployments are in progress
2015-03-30 08:26:10 -07:00
Mahesh V Kelkar 8f536464a5 Merge branch 'master' into issues/44-reload-config 2015-03-30 09:17:31 -04:00
Mahesh V Kelkar d764a890b7 Updated the scenario text for configReload op that explains in-progress state
References #44 and #122
2015-03-30 09:15:12 -04:00
R. Tyler Croy 168819c8fd Merge pull request #124 from mbbx6spp/fix-numeric-types-ddl
Remove integer type lengths in schema migrations
2015-03-29 19:52:06 -07:00
R. Tyler Croy 43095b4b78 Merge pull request #125 from mbbx6spp/update-hacking-docs
Update running doc with correct JAR path
2015-03-29 15:49:29 -07:00
Susan Potter 015517b484 Update running doc with correct JAR path 2015-03-29 17:39:33 -05:00
Susan Potter a4d889230f Remove integer type lengths in schema migrations
Lengths for integer types in SQL DDL statements are unnecessary and
meaningless. What is worse is it gives the reader/maintainer a false
sense of storage length. In addition removing these mostly ignored
length suffices from integer tyes in DDL we remove one more barrier
to being DDL conformant to supporting PostgreSQL if we want to though
there are still problems with `AUTO_INCREMENT`.

To demonstrate that these lengths are useless please see the integer
types from the MySQL v5.5 documentation:
https://dev.mysql.com/doc/refman/5.5/en/integer-types.html

And you can see a sanity check I documented in this Gist:
https://gist.github.com/mbbx6spp/77fc5c2c386ee6b3ef5c
2015-03-29 17:17:24 -05:00