Merge pull request #16374 from CartoDB/feature/sc-192476/aberran-increase-import-limit-of-10-datasets

[sc192476] Increase import limit of datasets from a single file
pull/16375/head
Shylpx 3 years ago committed by GitHub
commit b60c73b7cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,6 +27,7 @@ Development
- Disable email validation in DO Premium Subscriptions [#16309](https://github.com/CartoDB/cartodb/pull/16309)
- Hide sharing tab from viewer in on-premises [#16299](https://github.com/CartoDB/cartodb/pull/16299)
- Remove all references to Spatial Data Catalog and Kepler GL maps in on-premises [#16293](https://github.com/CartoDB/cartodb/pull/16293)
- Increase hard-limit of MAX_TABLES_PER_IMPORT [#16374](https://github.com/CartoDB/cartodb/pull/16374)
- Guard code for vizjson users [#16267](https://github.com/CartoDB/cartodb/pull/16267)
- Guard code for Users and Visualizations [#16265](https://github.com/CartoDB/cartodb/pull/16265)
- Use the organization user's data while editing a user from organization settings [#16280](https://github.com/CartoDB/cartodb/pull/16280)

@ -29,7 +29,7 @@ module CartoDB
UNKNOWN_ERROR_CODE = 99999
# Hard-limit on number of spawned tables (zip files, KMLs and so on)
MAX_TABLES_PER_IMPORT = 10
MAX_TABLES_PER_IMPORT = 26
# @param options Hash
# {

@ -121,8 +121,8 @@ describe 'KML regression tests' do
})
runner.run
runner.results.select(&:success?).length.should eq CartoDB::Importer2::Runner::MAX_TABLES_PER_IMPORT
runner.results.length.should eq CartoDB::Importer2::Runner::MAX_TABLES_PER_IMPORT
runner.results.select(&:success?).length.should be <= CartoDB::Importer2::Runner::MAX_TABLES_PER_IMPORT
runner.results.length.should be <= CartoDB::Importer2::Runner::MAX_TABLES_PER_IMPORT
runner.results.each { |result|
name = @user.in_database[%Q{ SELECT * FROM pg_class WHERE relname='#{result.table_name}' }].first[:relname]
name.should eq result.table_name

@ -82,8 +82,8 @@ describe 'rar regression tests' do
)
runner.run
runner.results.count(&:success?).should eq Runner::MAX_TABLES_PER_IMPORT
runner.results.length.should eq Runner::MAX_TABLES_PER_IMPORT
runner.results.count(&:success?).should be <= Runner::MAX_TABLES_PER_IMPORT
runner.results.length.should be <= Runner::MAX_TABLES_PER_IMPORT
runner.results.each do |result|
name = @user.in_database["SELECT * FROM pg_class WHERE relname='#{result.table_name}'"].first[:relname]
name.should eq result.table_name

@ -81,8 +81,8 @@ describe 'zip regression tests' do
})
runner.run
runner.results.select(&:success?).length.should eq ::CartoDB::Importer2::Runner::MAX_TABLES_PER_IMPORT
runner.results.length.should eq ::CartoDB::Importer2::Runner::MAX_TABLES_PER_IMPORT
runner.results.select(&:success?).length.should be <= ::CartoDB::Importer2::Runner::MAX_TABLES_PER_IMPORT
runner.results.length.should be <= ::CartoDB::Importer2::Runner::MAX_TABLES_PER_IMPORT
runner.results.each { |result|
name = @user.in_database[%Q{ SELECT * FROM pg_class WHERE relname='#{result.table_name}' }].first[:relname]
name.should eq result.table_name

Loading…
Cancel
Save