lightblue-platform / lightblue-applications

GNU General Public License v3.0
5 stars 9 forks source link

Allow configuring data management app's lightblue hosts (environments) #54

Closed alechenninger closed 9 years ago

alechenninger commented 9 years ago

With this, the application is completely decoupled from a server side component. In the current state, all that's needed is for a consumer to download the application; the rest is just Javascript. For instance, you could even run the app by cloning the repo and serving the directory on your on machine if you had connectivity available to the lightblue hosts. It makes development on the app very fluid.

Summary of changes:

jewzaam commented 9 years ago

Is it really necessary to include angular-strap in the source? This type of thing gets out of date easily. If it has to be bundled, couldn't we do an overlay or explode the referenced artifact as part of the build process?

alechenninger commented 9 years ago

The way bower works is it just clones a git repo, so there's no bundled download AFAIK. It's definitely ugly, but I was waiting on https://github.com/bower/bower/issues/505 to be fixed to stop storing deps into source control (which is not uncommon unfortunately in this case). It's nice to be able to use semantic version ranges in your bower.json dependency declarations, but these means if building downloads dependencies each time, it may get different versions on different builds, which is not really good either. Checking it into source control ensures collaborators are all using the exact same versions of dependencies.

I can look into alternative solutions until the shrinkwrap feature is implemented.

alechenninger commented 9 years ago

Looks like I messed up the POM... will fix this this weekend.

jewzaam commented 9 years ago

Moved to in progress. Comment when it's ready for review again please @alechenninger

coveralls commented 9 years ago

Coverage Status

Changes Unknown when pulling 02e9993e5de75ad3311f9e4c2125ef9aa4605dc6 on alechenninger:configurable-environments into \ on lightblue-platform:master**.

alechenninger commented 9 years ago

@jewzaam @derek63 Ready for review.

At this point there is no good solution I am aware of to avoid checking bower dependencies into source control, while still making sure that developers who check out the code base are using the same dependency versions (it is impossible to nail down transitive dependency versions due to semver version ranges). The aforementioned shrinkwrap feature that bower is working on should solve this when it is done, and if there's anything else we can do I'd like to put it off as a future refactoring.

However, to facilitate review, I removed the dependencies from this pull request. I think though that they should be checked back in before we merge this PR however. So please comment when review is done.

coveralls commented 9 years ago

Coverage Status

Changes Unknown when pulling dbbb2974951e6173fd5f5d7d18c6a0cc8a7c03dd on alechenninger:configurable-environments into \ on lightblue-platform:master**.

jewzaam commented 9 years ago

If those dependencies are required for this PR to be merged add them back in. They can ignored for the review.

coveralls commented 9 years ago

Coverage Status

Changes Unknown when pulling 1fc889b5fc24b7fcdeed2de642a8d191f85f68b1 on alechenninger:configurable-environments into \ on lightblue-platform:master**.

coveralls commented 9 years ago

Coverage Status

Changes Unknown when pulling 1fc889b5fc24b7fcdeed2de642a8d191f85f68b1 on alechenninger:configurable-environments into \ on lightblue-platform:master**.

alechenninger commented 9 years ago

Added back -- fair warning, though, it chokes up my browser a bit looking at the review page since it is unfortunately so very large. If bower doesn't implement the shrinkwrap feature soon I might have to take a stab at it myself!! :)

coveralls commented 9 years ago

Coverage Status

Changes Unknown when pulling 0556c3c4722778c219e89d7921a1152779ed6ff7 on alechenninger:configurable-environments into \ on lightblue-platform:master**.

paterczm commented 9 years ago

Something I noticed: The 'Data host' label is used for both columns on /app/data/#/environments page. The other column should be called 'Metadata host'. Other than that, looks good.

I would be nice to hide bower_components changes from the diff, but as long as 3rd party code is in separate commit, it's still reviewable.

coveralls commented 9 years ago

Coverage Status

Changes Unknown when pulling 0fa3f1dd4ae663a905e7208bd651e628ac5c8834 on alechenninger:configurable-environments into \ on lightblue-platform:master**.

coveralls commented 9 years ago

Coverage Status

Changes Unknown when pulling 0fa3f1dd4ae663a905e7208bd651e628ac5c8834 on alechenninger:configurable-environments into \ on lightblue-platform:master**.