Select default/configured gc period in create/edit repository page
| | |
| | | - Fixed NPE when attempting to add a permission without a registrant (issue-344) |
| | | - Invalidate all cached repository data on "clear cache" (issue-346) |
| | | - Fix chart failures when an apostrophe is in a user display name (issue-350, pr-128) |
| | | - Fix exception in create repository when not selecting a garbage collection period (issue-366) |
| | | - Stop setting admin permission based on undocumented Redmine REST API behavior (issue-368) |
| | | - Fix support url decoding with non-ascii characters (pr-136) |
| | | - Fix potential NPE on removing uncached repository from cache |
| | |
| | | form.add(new DropDownChoice<String>("HEAD", availableRefs).setEnabled(availableRefs.size() > 0));
|
| | |
|
| | | boolean gcEnabled = app().settings().getBoolean(Keys.git.enableGarbageCollection, false);
|
| | | int defaultGcPeriod = app().settings().getInteger(Keys.git.defaultGarbageCollectionPeriod, 7);
|
| | | if (repositoryModel.gcPeriod == 0) {
|
| | | repositoryModel.gcPeriod = defaultGcPeriod;
|
| | | }
|
| | | List<Integer> gcPeriods = Arrays.asList(1, 2, 3, 4, 5, 7, 10, 14 );
|
| | | form.add(new DropDownChoice<Integer>("gcPeriod", gcPeriods, new GCPeriodRenderer()).setEnabled(gcEnabled));
|
| | | form.add(new TextField<String>("gcThreshold").setEnabled(gcEnabled));
|