Skip to content

Commit

Permalink
Upgrade django storage. (#2571)
Browse files Browse the repository at this point in the history
* Upgrade django storage.

* Remove post-css library, unused. (#2574)

* Update user/file facet/columns per user request. (#2577)

* Remove post-css library, unused.

* Update user/file facet/columns per user request.

* Remove typo ,

* Fix typo, double quotes.

* Remove space.

* Add cell_type to facets.

* Fix unit test.

* Add missing facets.

* Fix cypress test.

* Revert to 1.6.0 due to django 1.9 support.
  • Loading branch information
jkmarx committed Feb 9, 2018
1 parent 3921537 commit b4f2b3f
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 38 deletions.
2 changes: 1 addition & 1 deletion deployment/aws-config/config.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ REFINERY_GOOGLE_ANALYTICS_ID: ""

REFINERY_URL_SCHEME: "http"

USER_FILES_COLUMNS: "filename,organism,technology,antibody,date,genotype,experimenter"
USER_FILES_COLUMNS: "sample_name,local_path,filetype,organism,technology,genotype,cell_type,antibody,experimenter,date_submitted"

# == Rarely changed ==

Expand Down
4 changes: 2 additions & 2 deletions refinery/config/config.json.erb
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@
"TOKEN_DURATION": 3,
"USE_I18N": true,
"USE_L10N": true,
"USER_FILES_COLUMNS": "filename,organism,technology,antibody,date,genotype,experimenter",
"USER_FILES_FACETS": "organism,technology,antibody,genotype,experimenter"
"USER_FILES_COLUMNS": "sample_name,local_path,filetype,organism,technology,genotype,cell_type,antibody,experimenter,date_submitted",
"USER_FILES_FACETS": "filetype,organism,technology,genotype,cell_type,antibody,experimenter"
}
30 changes: 0 additions & 30 deletions refinery/ui/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,35 +129,6 @@ module.exports = function (grunt) {
};

grunt.initConfig({
/*
* Add vendor prefixes to out CSS to ensure better browser support.
*/
postcss: {
options: {
processors: [
require('autoprefixer')({ browsers: [
'> 5%',
'last 2 versions',
'Firefox ESR',
'Explorer >= 10',
'iOS >= 6',
'Opera >= 12',
'Safari >= 6'
] })
]
},
styles: {
files: [
{
expand: true,
cwd: '<%= cfg.basePath.ui.src %>/styles',
src: ['**/*.css'],
dest: '<%= cfg.basePath.ui.tmp %>/styles'
}
]
}
},

/*
* Read configs from `config.json`. Separating scripts and configs help
* to keep things readable.
Expand Down Expand Up @@ -851,7 +822,6 @@ module.exports = function (grunt) {
'clean:uiCompile',
'clean:staticCompile',
'less:compile',
'postcss',
// IMPORTANT:
// `concat-by-feature:compile` has to be called before `ngAnnotate` because
// it adds features to the `ngAnnotate` task.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ describe('Not logged in', function() {
cy.visit('/');
cy.visible_btn('List').click();

cy.visible('Filename');
cy.visible('Organism');
cy.visible('Technology');
cy.visible('Antibody');
Expand Down
1 change: 0 additions & 1 deletion refinery/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"grunt-karma": "1.0.0",
"grunt-newer": "1.2.0",
"grunt-ng-annotate": "2.0.1",
"grunt-postcss": "0.8.0",
"hasbin": "1.1.1",
"isbinaryfile": "3.0.0",
"jasmine-core": "2.3.4",
Expand Down
8 changes: 6 additions & 2 deletions refinery/user_files_manager/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,18 @@ def test_generate_solr_params_for_user(self):
query = generate_solr_params_for_user(QueryDict({}), user.id)
self.assertEqual(str(query).split('&'), [
'fq=assay_uuid%3A%28{}%29'.format(assay_uuid),
'facet.field=filetype_Characteristics_generic_s',
'facet.field=filetype_Factor_Value_generic_s',
'facet.field=organism_Characteristics_generic_s',
'facet.field=organism_Factor_Value_generic_s',
'facet.field=technology_Characteristics_generic_s',
'facet.field=technology_Factor_Value_generic_s',
'facet.field=antibody_Characteristics_generic_s',
'facet.field=antibody_Factor_Value_generic_s',
'facet.field=genotype_Characteristics_generic_s',
'facet.field=genotype_Factor_Value_generic_s',
'facet.field=cell_type_Characteristics_generic_s',
'facet.field=cell_type_Factor_Value_generic_s',
'facet.field=antibody_Characteristics_generic_s',
'facet.field=antibody_Factor_Value_generic_s',
'facet.field=experimenter_Characteristics_generic_s',
'facet.field=experimenter_Factor_Value_generic_s',
'fl=%2A_generic_s'
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ django-resumable==0.1b0
djangorestframework==3.3.3
djangorestframework-recursive==0.1.1
django-rest-swagger==0.3.4
django-storages==1.5.0
django-storages==1.6.0
django-supervisor==0.3.1
django-tastypie==0.12.2
djangular==0.3.0b1
Expand Down

0 comments on commit b4f2b3f

Please sign in to comment.