Commit Graph

15 Commits

Author SHA1 Message Date
parmouraly
8a905f9c0b Typo in BoltDB test 2020-06-04 16:27:23 +01:00
parmouraly
f546b69800 Remove BoltDB interface and mock as not needed 2020-06-04 16:12:26 +01:00
parmouraly
421b24738e Integrate some more PR feedback including a test 2020-06-03 17:00:30 +01:00
Paris Morali
cb26355da1 Add the rest of the BoltDB interface methods 2020-05-25 15:58:01 +01:00
Paris Morali
ade9b31593 Add BoltDB interface and some relevant tests
With BoltDB interface we are able to mock/stub and
improve test coverage.
Some other refactoring was required to make code aware
and compatible with the new interface
2020-05-11 15:13:36 +01:00
Paris Morali
ce1d577f1d Integrate PR feedback and tests adapted 2020-05-09 11:42:48 +01:00
Paris Morali
c5eda2742b Refactoring model to allow NotPlanned status
As part of the fix the model is slightly extended
to allow for an extra PlanStatus indicating the absence
of a plan for a project. This allows us to unlock a project
and delete the plan, without having to completely remove the
project status.
That means that atlantis knows there is a project that should
normally have a plan and be accounted for, but the plan has been
deleted/unlocked.
The reason this is important is so that we can't "trick" atlantis
into thinking that the PR can be merged just because we've lost
track of a projectstatus as a result of a manual unlock.
2020-04-26 13:55:42 +01:00
Luke Kysow
cad1242b3e Merge remote-tracking branch 'origin/master' into bolt-upgrade 2020-04-15 20:18:59 -07:00
Luke Kysow
82afe0b061 Fix lint issues 2020-04-13 10:04:37 -07:00
Aaron Masover
9980adaa3a Depend on bbolt 2020-04-06 16:58:32 -06:00
Luke Kysow
d78b106cab Refactor @jjulien's server-side config work. 2019-03-27 14:47:48 -05:00
Luke Kysow
4fc22aedeb Split status checks into plan and apply.
Split single top-level status check into one plan and one apply check.
These checks will also now track the whole pull request status rather
than just the last action.
2019-03-05 14:29:43 -05:00
Luke Kysow
f98fe8ef80 Add new status to ProjectPlanStatus 2019-03-05 12:08:11 -05:00
Luke Kysow
a13bce59ad updateDB should not return a pointer 2019-03-05 11:54:04 -05:00
Luke Kysow
74e9bbb82b Add automerge feature.
Automerging merges pull requests automatically if all plans have been
successfully applied.

* Save status of PR's to BoltDB so after each apply, we can check if
there are pending plans.
* Add new feature where we delete successful plans *unless* all plans
have succeeded *if* automerge is enabled. This was requested by users
because when automerge is enabled, they want to enforce that a pull
request's changes have been fully applied. They asked that plans not be
allowed to be applied "piecemeal" and instead, all plans must be
generated successfully prior to allowing any plans to be applied.
2019-02-06 16:27:43 -06:00