Commit graph

13 commits

Author SHA1 Message Date
Krasimir Angelov
d745ff0431 Add username to deploy tokens
This new attribute is optional and used when set instead of the default
format `gitlab+deploy-token-#{id}`.

Empty usernames will be saved as null in the database.

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/50228.
2019-07-02 18:56:48 +00:00
Stan Hu
bf4568811a Add GitLab QA spec for adding a deploy token 2018-10-12 06:07:41 -07:00
Mike Greiling
c90cfbd4ea
ensure all project repository settings panels remain open after form submission 2018-08-08 01:17:43 -05:00
Annabel Dunstone Gray
0deb8547af
Replace label-light with label-bold. Because it's bold, not light 2018-07-19 17:11:31 -05:00
Marcel Amirault
7a5b5f1e6c Update _form.html.haml (deploy tokens) to improve display of scopes 2018-07-18 13:05:30 +00:00
Mayra Cabrera
5bc58bac26 Handle limit for datetime attributes on MySQL
The TIMESTAMP data type is used for values that contain both date and
time parts. TIMESTAMP has a range of '1970-01-01 00:00:01' UTC to
'2038-01-19 03:14:07' UTC.

A Forever lib class was included to handle future dates for PostgreSQL
and MySQL, also changes were made to DeployToken to enforce Forever.date

Also removes extra conditional from JwtController
2018-04-06 22:28:44 -05:00
Mayra Cabrera
2991381630 Addresses database comments
- Adds a default on expires_at datetime
- Modifies deploy tokens views to handle default expires at value
- Use datetime_with_timezone where possible
- Remove unused scopes
2018-04-06 21:20:17 -05:00
Mayra Cabrera
c4f56a8802 Increase test suite around deploy tokens behavior
Also, fixes broken specs
2018-04-06 21:20:17 -05:00
Kamil Trzciński
2c6c61815e Get rid of Redis when dealing with deploy tokens
We use controller actions to pass a newly created token and errors
2018-04-06 21:20:16 -05:00
Mayra Cabrera
8315861c9a Include ProjectDeployTokens
Also:
- Changes scopes from serializer to use boolean columns
- Fixes broken specs
2018-04-06 21:20:16 -05:00
Mayra Cabrera
726f5bbf04 Fix i18n on deploy_token views 2018-04-06 21:20:16 -05:00
Mayra Cabrera
46a6036cf9 Addreses frontend review
Also fixes spec failures on presenter and docs
2018-04-06 21:20:16 -05:00
Mayra Cabrera
db18993f65 Create barebones for Deploytoken
Includes:
- Model, factories, create service and controller actions
- As usual, includes specs for everything
- Builds UI (copy from PAT)
- Add revoke action

Closes #31591
2018-04-06 21:20:16 -05:00