Commit Graph

14 Commits

Author SHA1 Message Date
Luke Kysow
99a0f0c4df Delete dynamodb locking code since Atlantis only works with disk right now 2017-07-12 09:46:45 -07:00
Luke Kysow
75e3188713 Set time location after deserialization 2017-07-11 10:27:32 -07:00
Luke Kysow
a57fc8847f Fix test 2017-07-10 18:58:19 -07:00
Luke Kysow
23d6b0cbd6 Write docs for packages 2017-07-09 18:18:36 -07:00
Luke Kysow
8fbe662185 Return error if workspace doesn't exist (#61)
* Return error if workspace doesn't exist
* Default data dir to ~/.atlantis. Don't clean workspaces
* Run goimports
2017-07-01 16:17:22 -07:00
Luke Kysow
e03775daf1 Comment on closed PR with locks/plans cleaned (#43) 2017-06-25 21:44:30 -07:00
Anubhav Mishra
7f8f85a6a7 Detail view (#47)
* Adding the ability to get lock data and show it using the detail view in the ui for boltdb

* adding modal style

* Adding new modal based discard ui

* Adding detail view and get lock funtionality with unlocking with the UI

* lots of clean up after review

* using jquery most places now

* missed in merge

* this should cause a build failure

* moving e2e test as part of the test override step so they run if unit tests fail

* fixing boltdb tests

* turns out you can't fail fast in circleci

* don't compare locks
2017-06-25 15:24:07 -07:00
Luke Kysow
57e18399d7 Delete plan on successful apply (#46)
* Return locks when they're deleted

* Implement DeletePlan and DeletePlanByPull

* Clean up data from pull request on close

* Delete plan on successful apply
2017-06-25 10:11:51 -07:00
Luke Kysow
f7d088f581 Include more data with locks like pull link and user 2017-06-20 23:36:38 -07:00
Luke Kysow
d425de95fa Refactoring
* set version in one place
* rename ExecutionContext to CommandContext
* delete unneeded PullRequestContext since it just duplicated what is in CommandContext
* split fields inside CommandContext into Repo, PullRequest, and User models
* clean up unused fields
* remove base_executor stuff which was trying to do inheritance in go and didn't get us anywhere
* clean up unused code and assets
* created a locking.Client that creates the Keys that are used on the front-end. This allows the backends to store the locks any way they like as long as they support the interface
2017-06-17 14:14:21 -07:00
Luke Kysow
57f188f95f Unlock locks when pull request merged (#19)
* Add new FindLocksForPull method to locking backends
* Listen for pull request closed events and delete locks
* DynamoDB handling its own serialization. Implement LocksByPull
* Fix routing to work with encoded lockID
* Move locking backends to individual packages
* Change flag from locking-table to locking-dynamodb-table
2017-06-13 22:48:34 -07:00
Luke Kysow
d1bda5ff28 Use cobra and viper for cli/config (#20)
* #15 Use cobra and viper for cli/config

* Run gofmt
2017-06-07 21:20:37 -07:00
Luke Kysow
0cb13a9e85 Fixes #10. Renaming for consistency (#12)
Repo owner, name => repoFullName
PullID => PullNum to match GitHub API
PR => Pull to match GitHub API and avoid writing PRID anywhere
2017-05-31 16:46:49 -07:00
Luke Kysow
4e20cc15a9 Local locking with BoltDB or remote with DynamoDB 2017-05-31 00:10:49 -07:00