Commit Graph

18 Commits

Author SHA1 Message Date
gfyoung 12ee2753c1 Enable even more frozen string in app/controllers
Enables frozen string for some vestigial files as
well as the following:

* app/controllers/projects/**/*.rb
* app/controllers/sherlock/**/*.rb
* app/controllers/snippets/**/*.rb
* app/controllers/users/**/*.rb

Partially addresses #47424.
2018-09-25 22:43:49 -07:00
Stan Hu 5830d1143d Delete a container registry asynchronously
When a container registry has many tags, it's easy for the DELETE call to take more
than 60 seconds and fail. This can also leave the registry in a bad state with
null bytes since some of the images have been deleted with tags still pointing to them.
In addition, we have to prevent users from accidentally initiating the delete multiple
times or this could leave the registry with orphaned tags.

This commit also adds a flash message to notify the user the registry is scheduled
for deletion.

Closes #49926, #51063
2018-09-07 12:42:59 -07:00
Kamil Trzcinski 800a5f8ee9 Add serializer matchers 2017-10-02 23:17:31 +02:00
Kamil Trzcinski 8ba9c2bd6d Add ContainerTag and ContainerRepository frontend API 2017-09-21 12:21:50 +02:00
Filipa Lacerda ee3cf5d6f3
[ci skip] Adds tests to vuex and collapsibe component
Formats dates
Fixes clipboard button
Simplifies HTML
2017-09-20 19:03:53 +01:00
Filipa Lacerda 51c9f8b6d6 [ci skip] First iteration: port haml into vue 2017-09-19 17:55:25 +01:00
Douwe Maan fe13f11041 Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
blackst0ne a544e46bb0 Add a rubocop rule to check if a method 'redirect_to' is used without explicitly set 'status' in 'destroy' actions of controllers 2017-06-07 09:45:16 +11:00
Grzegorz Bizon 714c408f22 Add minor improvements to container registry code 2017-04-06 10:23:51 +02:00
Grzegorz Bizon 000af87190 Remove redundant code from container registry classes 2017-04-05 14:44:35 +02:00
Grzegorz Bizon ed0547b7c0 Require container registry entities in controllers 2017-04-05 14:18:42 +02:00
Grzegorz Bizon f60820ed03 Fix wording in registry tags controller notifications 2017-04-04 13:02:52 +02:00
Grzegorz Bizon 59b5843eb0 Improve wording in registry notifications in the UI 2017-04-04 11:50:26 +02:00
Grzegorz Bizon fc5eb31570 Fix Rubocop offenses in code related to the registry 2017-04-03 15:53:51 +02:00
Grzegorz Bizon fd30b3d497 Ensure root container repository when visiting registry
Root container repository is a images repository that had been created
before 9.1, before we introduced multi-level images support.
2017-04-03 13:03:16 +02:00
Grzegorz Bizon 83d1fe9b5a Add serveral minor improvements to container registry 2017-03-31 15:10:15 +02:00
Grzegorz Bizon 00319e595a Move code related to registry to multiple controllers 2017-03-31 13:56:07 +02:00
Grzegorz Bizon 4195677383 Reorganize container repository controllers and views 2017-03-31 13:08:09 +02:00