Commit Graph

396 Commits

Author SHA1 Message Date
Denis Gukov
3be729c1e6 fix(be): boltdb migration 2022-01-24 00:08:34 +05:00
Denis Gukov
caf47c2bf6 style(be): rename go-migration 2022-01-23 21:47:31 +05:00
Denis Gukov
7737567a21 fix(be): migrations 2022-01-23 21:34:42 +05:00
Denis Gukov
ae0a471c8d refactor(be): move sql migration to separate file 2022-01-23 20:36:32 +05:00
Denis Gukov
0bc9aab31a fix(be): exit from method on error 2022-01-23 20:07:10 +05:00
Denis Gukov
e9e78adf97 test(be): test for bolt migration 2022-01-23 19:01:11 +05:00
Denis Gukov
d942cce1bc test(be): fix tests after migration refactoring 2022-01-23 18:21:27 +05:00
Denis Gukov
9520c0cd1b feat(be): implement migrations for BoltDB 2022-01-23 18:03:23 +05:00
Denis Gukov
c5a70c9794 refactor(be): move Version up from sql to db package 2022-01-23 13:22:12 +05:00
Denis Gukov
06ad02d391 feat(be): add git_branch to database and add repository validation 2022-01-22 13:16:23 +05:00
Denis Gukov
f6b5a39432 fix(be): remove checking of updates from system info endpoint 2022-01-20 19:53:48 +05:00
Denis Gukov
315dba69fb feat(be): passing to ansible new variable semaphore_vars 2022-01-20 03:07:30 +05:00
Denis Gukov
d8afdb19d8 feat(be): recursive retreaving task version. Now we can make pipelines :) 2022-01-20 01:42:08 +05:00
Denis Gukov
51fc40e9c8 feat(be): triggering autorun tasks 2022-01-20 00:35:59 +05:00
Denis Gukov
02b0d60200 test(be): fix tests after survey vars mod 2022-01-19 17:53:58 +05:00
Denis Gukov
d60e3cf1f4 fix(be): test lint 2022-01-19 17:48:16 +05:00
Denis Gukov
8f6db54218 feat(fe): add survay var type 2022-01-19 17:44:56 +05:00
Denis Gukov
7f297a252b feat: add survey vars to task form 2022-01-19 17:05:48 +05:00
Denis Gukov
e734904f98 fix(be): template sql query 2022-01-19 15:41:39 +05:00
Denis Gukov
5b6bd552a5 fix(be): schedule query 2022-01-19 15:30:22 +05:00
Denis Gukov
da99bfb842 fix(be): schedule query 2022-01-19 14:17:39 +05:00
Denis Gukov
6be09da63c feat: REMOVE PLACEHOLDER USER FUNCTIONALITY 2022-01-19 02:26:48 +05:00
Denis Gukov
4c706f5876 feat(be): add migration for new template and schedule fields 2022-01-19 02:09:42 +05:00
Denis Gukov
ba8ea4c650 feat(ui): add survey vars to ui 2022-01-19 00:17:48 +05:00
Denis Gukov
5860e1378b fix(be): test for register user 2022-01-17 01:14:44 +05:00
Jordan Hayes
be5e612443
Define limit as override variable 2022-01-11 10:24:11 -08:00
Denis Gukov
4d3a74ac98 docs(be): comment method 2021-12-19 17:31:23 +05:00
Denis Gukov
458ee316ba feat(be): placeholder user 2021-12-18 18:16:34 +05:00
Denis Gukov
73443a9612 feat: display Register form if no users in database 2021-12-16 02:22:52 +05:00
Denis Gukov
5d89a766f4 fix(be): event migration 2021-11-13 15:10:09 +05:00
Denis Gukov
8b2fb74074 fix(be): add missed column in migration 2021-11-11 13:17:51 +05:00
Denis Gukov
3b1bbd6779 feat(be): id column to event table 2021-11-10 13:28:10 +05:00
Denis Gukov
a36b948691 fix(be): Access key file not found https://github.com/ansible-semaphore/semaphore/issues/783 2021-11-03 17:51:36 +05:00
Denis Gukov
db89f5487d test(be): pass tests 2021-11-03 00:35:45 +05:00
Denis Gukov
54773d0c35 feat(be): data validation 2021-11-03 00:30:45 +05:00
Denis Gukov
f9b842e5da fix(be): bug with filterging view templates 2021-10-28 15:04:50 +05:00
Denis Gukov
001ddd3ae3 feat(fe): view tabs 2021-10-28 00:48:51 +05:00
Denis Gukov
106a53bcae test(be): fix dredd tests 2021-10-27 21:22:52 +05:00
Denis Gukov
793d74dac6 feat(be): sql implementation of views 2021-10-27 17:15:36 +05:00
Denis Gukov
339dfa52ce fix(be): set view positions for boltdb 2021-10-27 16:58:45 +05:00
Denis Gukov
1285f10201 feat(be): views implementation for bolt 2021-10-27 16:43:04 +05:00
Denis Gukov
3b2f62ffbd feat(be): add view mock 2021-10-26 23:19:12 +05:00
Denis Gukov
64e16e2c80 feat(be): remove task arguments 2021-10-26 20:43:45 +05:00
Denis Gukov
852e06f1f7 fix(be): mariadb migrations 2021-10-26 14:36:07 +05:00
Denis Gukov
a3755e70da feat(be): remove arguments for task 2021-10-26 03:00:10 +05:00
Denis Gukov
bc1594329d refactor(be): move BuildTask to TaskWithTpl 2021-10-25 23:09:46 +05:00
Denis Gukov
793d1a36e2 fix(be): recursive 2021-10-25 16:21:49 +05:00
Denis Gukov
bc3a5a6ac9 feat: use reference to build task by id insead of by version 2021-10-20 16:56:29 +05:00
Denis Gukov
89240737a0 feat(fe): ui docs 2021-10-18 17:41:54 +05:00
Denis Gukov
0a454b0d97 refactor(be): add enum TemplateType based on string 2021-10-15 01:25:12 +05:00
Denis Gukov
da361848cc fix(be): add empty default values for some columns 2021-10-15 01:13:18 +05:00
Denis Gukov
8c10b9fc6e feat(fe): display commit hash and message on deploy window 2021-10-14 20:13:21 +05:00
Denis Gukov
85ef96320d feat(be): store commit message to task 2021-10-14 15:36:33 +05:00
Denis Gukov
ad9846e338 feat(be): no default value for template type, null mean task 2021-10-14 00:40:46 +05:00
Denis Gukov
be97e87bb7 feat(fe): Rerun, rebuild, redeploy buttons for tasks 2021-10-14 00:26:19 +05:00
Denis Gukov
f8b9fcf3d4 fix(ui): small UI issues 2021-10-13 23:51:35 +05:00
Denis Gukov
d8ce55ae84 refactor(ui): move constants to file constants.js 2021-10-13 22:14:03 +05:00
Denis Gukov
e692d2403e refactor(be): add enum for event object type 2021-10-13 19:07:22 +05:00
Denis Gukov
a46b0e3ae3 feat(be): retreaving commit hash from repo 2021-10-13 01:44:10 +05:00
Denis Gukov
e7e807bc51 feat(be): build versioning 2021-10-13 00:43:15 +05:00
Denis Gukov
b7eb0cd940 feat(ui): task template icons 2021-10-12 18:59:16 +05:00
Denis Gukov
0f72ce182d feat(ui): support build/deploy on UI 2021-10-12 16:37:51 +05:00
Denis Gukov
4ef6b5d484 refactor(be): move functions to appropriate files 2021-10-12 15:25:43 +05:00
Denis Gukov
ea9b3661f2 chore(be): nullable template start_version 2021-10-12 15:18:05 +05:00
Denis Gukov
14b8def6f3 feat(be): add type of template: task, build or deploy 2021-10-12 02:40:41 +05:00
Denis Gukov
87cc947ec3 fix(be): saving become_key_id to sql 2021-09-17 15:10:36 +05:00
Denis Gukov
ef8f387515 chore: fix confict 2021-09-17 15:07:11 +05:00
Denis Gukov
4c7d21b844 chore: fix confict 2021-09-17 15:06:19 +05:00
Denis Gukov
6bd6c338f7 feat(be): timeout of boltdb 2021-09-17 15:05:04 +05:00
Denis Gukov
5800e3a7ac fix(be): ansible user/pass format 2021-09-17 04:17:19 +05:00
Denis Gukov
7f52d93441 fix(be): quote 'end' column name for postgres 2021-09-17 03:19:34 +05:00
Denis Gukov
f8b0195f88 fix(be): vault_key_id store to sql 2021-09-17 03:14:35 +05:00
Denis Gukov
a9c04117c5 fix(be): correct error message for foreign key errors 2021-09-17 02:35:44 +05:00
Denis Gukov
c3d3c55620 refactor(be): delete isObjectInUse from sql implementation. It duplicate foreign key functionality 2021-09-17 02:29:20 +05:00
Denis Gukov
d4dd2052bb refactor(be): rename column vault_pass_id to vault_key_id 2021-09-17 02:20:59 +05:00
Denis Gukov
3c20c1abf8 fix(be): checking of entity used before delete it 2021-09-17 01:51:53 +05:00
Denis Gukov
1d46aa72a8 test(be): fix access key tests 2021-09-13 18:22:08 +05:00
Denis Gukov
749291a690 feat(be): pass ansible_user/password to ansible-playbook via file 2021-09-12 03:18:26 +05:00
Denis Gukov
f207aa6bff feat(be): change error message for access key decryption 2021-09-10 03:41:36 +05:00
Denis Gukov
554e797e24 fix(be): use correct config field for access key encryption 2021-09-10 02:31:06 +05:00
Denis Gukov
1d72c32994 fix(be): delete schedule 2021-09-09 23:56:15 +05:00
Denis Gukov
7ca8da12f3 fix(be): store template description to database for sql 2021-09-09 21:50:02 +05:00
Denis Gukov
efc44277ee feat(fe): implement schedule for template 2021-09-06 19:12:57 +05:00
Denis Gukov
ebbea98248 fix(be): schedule migration 2021-09-06 17:55:26 +05:00
Denis Gukov
71a4a1ebae feat(be): implement schedules for Bolt 2021-09-06 16:18:07 +05:00
Denis Gukov
6eeb6706d4 feat: add schedule functionality 2021-09-06 16:05:10 +05:00
Denis Gukov
b77ffbfab8 style(be): var name 2021-09-05 14:44:41 +05:00
Denis Gukov
54a35c61d4 fix: access key validation 2021-09-04 11:39:16 +05:00
Denis Gukov
efe6c02793 feat: support vault pass file and ansible user login / password in inventory 2021-09-02 02:14:32 +05:00
Denis Gukov
a6f266bcb7 feat(be): add inventory become credentials and template vault password to database 2021-09-02 00:17:28 +05:00
Denis Gukov
b950dacd73 test(dredd): fix api docs and return key secret validation 2021-09-01 22:56:44 +05:00
Denis Gukov
0aa20225ed fix(test): dredd tests 2021-09-01 22:41:54 +05:00
Denis Gukov
aa6cb856b7 feat: add password file for Access Key 2021-09-01 19:38:28 +05:00
Denis Gukov
e991800693 feat: removed public key. fix: encrypt private key for new access key 2021-08-31 10:47:19 +05:00
Denis Gukov
bb3f560e21 fix(be): base64 for encrypted private key 2021-08-31 04:27:15 +05:00
Denis Gukov
7443671059 feat(be): add access key encryption 2021-08-31 04:02:41 +05:00
Denis Gukov
974f3066e5 feat(be): stopping hung tasks 2021-08-31 00:42:11 +05:00
Denis Gukov
c6a02a81fe fix(be): handing empty forign column name 2021-08-30 21:04:18 +05:00
Denis Gukov
cb5f27d9ed fix(be): migrations for mysql and postgres 2021-08-30 20:11:08 +05:00
Denis Gukov
92895f9f3c refactor(be): remove unused columns 2021-08-30 19:24:20 +05:00
Denis Gukov
0b3b56620c refactor(config): add field dialect 2021-08-28 22:03:34 +05:00
Denis Gukov
22e422e15a feat(cli): add user management commands 2021-08-28 16:44:41 +05:00
Denis Gukov
335dad3745 fix(be): project_id value for each task 2021-08-26 13:01:42 +05:00
Denis Gukov
473b68c00c refactor(be): remove duplication beteen bolt and sql events implementation 2021-08-25 09:48:38 +05:00
Denis Gukov
586f56247e style(be): pass linter 2021-08-24 22:56:40 +05:00
Denis Gukov
551ef97233 fix(be): add quotes to user table in queties to support postgres 2021-08-24 22:52:35 +05:00
Denis Gukov
63a4a32ac1 feat: refactor to support postgres 2021-08-24 20:20:34 +05:00
Denis Gukov
8d5c57ea5c feat: support Postgres dialect 2021-08-24 15:51:21 +05:00
Denis Gukov
d269a53625 feat(be): add user id to activity log 2021-08-20 11:28:50 +05:00
Denis Gukov
27eab684c2 feat(cli): add arg -useradd for adding user via command line 2021-08-16 02:35:44 +05:00
Denis Gukov
a1b2d2dc7f fix(be): returns correct error object if user not found 2021-08-11 19:54:27 +05:00
Denis Gukov
c9f64b51cf fix(be): returns store according configuration 2021-06-25 02:17:50 +05:00
Denis Gukov
cca0e95dea fix(be): pass unit tests 2021-06-25 01:53:48 +05:00
Denis Gukov
a6b4b1438f style(be): linter 2021-06-25 00:58:39 +05:00
Denis Gukov
b60e927fc6 fix(be): correct sorting for boltdb 2021-06-25 00:53:36 +05:00
Denis Gukov
482d24422b feat: tasks for BoltDB 2021-06-24 22:45:28 +05:00
Denis Gukov
2b8a942e33 fix(be): remove boltdb user 2021-05-17 02:44:42 +05:00
Denis Gukov
c607b20b26 feat: remove old ui 2021-05-15 17:59:06 +05:00
Denis Gukov
31342eeece test(be): replace t.Failed() to t.Fatal() 2021-05-15 17:40:31 +05:00
Denis Gukov
bdd0977706 test(be): add some tests for bolt db 2021-05-15 17:23:47 +05:00
Denis Gukov
bf91af5198 feat(db): boltdb soft delete 2021-05-15 16:27:42 +05:00
Denis Gukov
ca05dd94db fix(be): return correct http error code 2021-05-14 17:31:24 +05:00
Denis Gukov
0aee57643b test(be): delete user and project for boltdb 2021-05-14 16:57:51 +05:00
Denis Gukov
bc5f7946fc test(be): tests for bolt implementation 2021-05-14 16:47:32 +05:00
Denis Gukov
855228e22c fix(be): boltdb - empty lists 2021-05-14 04:23:23 +05:00
Denis Gukov
2624a72bcf feat(be): run boltdb backend 2021-05-14 03:37:45 +05:00
Denis Gukov
c2628bf909 fix(be): correct marshalling for boltdb 2021-05-14 02:17:16 +05:00
Denis Gukov
c0a0e71417 refactor(be): rename db tables prop objects 2021-05-14 00:45:54 +05:00
Denis Gukov
0e7c8b7f63 fix(be): boltdb backet validation 2021-05-13 19:33:04 +05:00
Denis Gukov
b0d0561966 fix(be): add required param 2021-05-13 19:23:12 +05:00
Denis Gukov
dade5a3a7b feat(be): implemented all Store interface methods by BoltDb implementation 2021-05-13 18:49:32 +05:00
Denis Gukov
6a652be1f4 feat(be): implement all except tesks for BoltDB 2021-05-13 03:56:31 +05:00
Denis Gukov
052499730b feat(be): implement session, project with boltdb 2021-05-10 01:08:10 +05:00
Denis Gukov
67acad9c32 feat(be): add env, tempalte and inv implementation for bolt 2021-05-09 01:25:31 +05:00
Denis Gukov
0cc640b48b feat(be): bolt helper functions like for sql 2021-05-08 22:25:00 +05:00
Denis Gukov
55e8024b23 refactor: move ObjectProperies to db package 2021-05-07 15:08:34 +05:00
Denis Gukov
c16406c924 fix: return Sql() method to SqlDb type for dredd tests 2021-05-06 18:12:21 +05:00
Denis Gukov
dafd619134 feat: complate migration to Store. Remove Sql() method 2021-05-06 17:49:26 +05:00
Denis Gukov
82c3b62660 refactor: user auth via Store 2021-05-06 17:41:31 +05:00
Denis Gukov
d21b32fe6c refactor(be): remove method fetch, use Store instaed of it 2021-05-06 13:34:44 +05:00
Denis Gukov
696353ffdf feat(be): init boltdb 2021-04-10 02:02:35 +05:00
Denis Gukov
0787920d97 fix(web2): password field for new/edited user 2021-03-13 02:13:39 +05:00
Denis Gukov
779760d6aa fix(be): lint 2021-03-13 01:30:17 +05:00
Denis Gukov
ac2132f290 fix(ci): capabilities 2021-03-13 01:20:18 +05:00
Denis Gukov
d0392485eb feat: migrate logging to Store 2021-03-12 22:41:41 +05:00
Denis Gukov
d10b421538 refactor(be): split SqlDb to several files 2020-12-20 23:00:59 +05:00
Denis Gukov
c472dc66dd refactor(be): migrate users to Store 2020-12-17 19:00:05 +05:00
Denis Gukov
0c3a7c0c7e fix(be): events endpoint 2020-12-17 16:52:00 +05:00
Denis Gukov
d32f35f2ec refactor(be): events via Store 2020-12-17 01:57:54 +05:00
Denis Gukov
027e45fc86 refactor(be): migrate projects to Store 2020-12-17 00:19:20 +05:00
Denis Gukov
49fea98db3 refactor(be): migrate key to Store 2020-12-08 13:24:54 +05:00
Denis Gukov
19c7b7cbf9 refactor(be): migrate repos to Store 2020-12-08 00:48:52 +05:00
Denis Gukov
385e788795 feat(be): migrate inventories to Store 2020-12-07 17:13:59 +05:00
Denis Gukov
f3a786c684 fix(be): do not return error if update session returns no rows. 2020-12-05 23:28:22 +05:00
Denis Gukov
fd1d42782b refactor(be): return models to db package 2020-12-05 14:13:43 +05:00
Denis Gukov
1295435f18 test(be): fix dredd tests 2020-12-05 03:26:24 +05:00
Denis Gukov
6291647d5b refactor(be): migrate environment endpoints to Store 2020-12-04 21:29:37 +05:00
Denis Gukov
d754eefeae chore(be): remove sqlite 2020-12-04 13:46:02 +05:00
Denis Gukov
6e1a6d20ca refactor(be): template and environment endpoints use Store
Rename util to helpers
Bind returns bool instead of error
2020-12-04 13:46:02 +05:00
Denis Gukov
b083f74322 fix(be): delete global Mysql variable and add interface Store for dialect-independent communication with database. 2020-12-04 13:46:02 +05:00
Denis Gukov
400d2f6933 chore: fix merge conflicts 2020-12-01 23:35:50 +05:00
Denis Gukov
d09fc1d26c feat(be): support sqlite 2020-12-01 21:37:29 +05:00
Stanislav Simovski
d356286796 Use official images + fix linter 2020-02-09 15:48:24 +02:00
dahyung.kwon
70bea1e133 add version 2.5.2 2018-10-16 00:48:19 +09:00
dahyung-kwon
4814b7ee40 Add arguments column on task table. 2018-09-11 20:29:05 +09:00
tom whiston
cccc00d113 use dredd for api testing
add ci context docker deployment
update api docs
add some small fixes
2018-04-18 18:03:15 +00:00
tom whiston
17fa7bb407 add gometalinter to tools and run it in circle.
extract some error checking and logging in places where linting needed or errors not checked
2018-04-05 21:24:19 +00:00
Tom Whiston
b745ec6fa2 change to using packr instead of go-bindata 2018-03-05 19:59:58 +01:00
Anton Markelov
ec41a59539 rename migration asset 2018-02-19 08:59:28 +10:00
Anton Markelov
fe5dcdc1c8 minor fixes after code review 2018-02-17 09:46:23 +10:00
Anton Markelov
05a1b3cbd8 add admin role, restrict users without it 2017-07-26 15:55:34 +10:00
Matej Kramny
a23ed8bfae run migrations on startup
fixes #332
2017-05-20 15:21:13 +02:00
Anton Markelov
bff8297145 add option for per-project telegram alert to different chats 2017-05-03 14:27:58 +10:00
Matej Kramny
02afd2dd54 fix #303 2017-04-18 17:25:59 +01:00
Matej Kramny
9de02d0b17 fix #312 2017-04-18 17:21:10 +01:00
Matej Kramny
7c04a926d5 fix 2.2.1 migration #299 2017-04-18 16:42:00 +01:00
Matej Kramny
544b363f4b add default values for 2.3.0.sql 2017-04-18 16:37:55 +01:00
Matej Kramny
9fd49333de Merge branch 'develop' of github.com:ansible-semaphore/semaphore into develop 2017-04-18 15:54:51 +01:00
Matej Kramny
60a6570bdc Merge pull request #299 from galexrt/improve-sql-error
Fix the primary key creation queries in v2.2.1 migration
2017-04-18 15:54:40 +01:00
Matej Kramny
4b6a518b73 fixes resulting from master merge 2017-04-18 14:58:48 +01:00
Matej Kramny
db4948cb89 Merge branch 'master' into develop
# Conflicts:
#	Dockerfile
#	api/login.go
#	api/projects/environment.go
#	api/projects/project.go
#	api/projects/templates.go
#	api/tasks/runner.go
#	api/users.go
#	db/versionHistory.go
#	util/bindata.go
2017-04-18 14:48:31 +01:00
Anton Markelov
308c1e64ef add simple LDAP authentification to the config and login page 2017-03-27 14:53:00 +10:00
Alexander Trost
afd2a720f7 Fix the primary key creation queries
Add id column to task__output table "instead"
Print error message in case of database errors
2017-03-16 17:32:42 +01:00
Matej Kramny
ef4b1edd51 Merge pull request #294 from galexrt/sql-primary-keys
Added primary keys to the existing tables
2017-03-12 17:11:28 -07:00
Alexander Trost
bf83b7e312 Added v2.2.1 sql migration file that adds primary keys to the tables 2017-03-12 19:51:03 +01:00
Anton Markelov
4bbedac795 add alert setting for user and (WIP) project 2017-03-10 10:12:55 +10:00
Matej Kramny
6c633fdbf2 Merge branch 'master' into develop
# Conflicts:
#	api/auth.go
#	cli/main.go
#	db/Event.go
2017-03-06 11:34:10 -08:00
Matej Kramny
2a2b7e8aed merge models -> db 2017-02-22 21:12:16 -08:00
Matej Kramny
b8389f859b fix migration file 2016-11-21 17:18:44 -08:00
gcavalcante8808
bed90e2986 Alias field was not created on the DB. Corrected: added version 1.9.0. 2016-11-17 20:06:49 -02:00
gcavalcante8808
ed46338da5 Fixes #188. 2016-11-15 13:44:41 -02:00
Tokuhiro Matsuno
129af0fa17 Added dry_run button. close #152 2016-06-30 10:57:45 -04:00
Tokuhiro Matsuno
af8d0595d4 Save task executed user's ID in database.
And show user name in task information view.
2016-06-26 07:50:51 +09:00
Matej Kramny
b4cab16fda Improved UI
- Fixes #94
- Fixes admin permissions (needed to manipulate users)
2016-06-17 13:16:46 -07:00
Matej Kramny
f16b3a57e8 Fix SQL bugs
- Fixes #117
- Fixes #116
2016-06-02 19:26:51 +01:00
Matej Kramny
c58d9ac34f refactoring 2016-05-24 10:55:48 +01:00