Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pre/postinstall scripts to prevent 'npm install' failure #16454

Closed
wants to merge 202 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
ce67f3b
Improve info for :update_user command
Shylpx Oct 26, 2021
09d45b6
Update NEWS.md
Shylpx Oct 26, 2021
0ef032a
Fix 404 page
Shylpx Oct 28, 2021
b4f875c
Fix privacy dropdown behavior
moicalcob Oct 29, 2021
9c9f2d9
Update NEWS.md
moicalcob Oct 29, 2021
79d6112
Remove spaces
moicalcob Oct 29, 2021
af5f2cc
Remove spaces
moicalcob Oct 29, 2021
c8136ee
Update assets version
moicalcob Oct 29, 2021
c4966b2
Merge branch 'feature/sc-172043/reef-admin-can-t-set-map-to-private' …
moicalcob Oct 29, 2021
bd27ce1
Remove old named map when a user is reaching the limit, and notify su…
moicalcob Oct 29, 2021
a5c6c89
Update NEWS.md
moicalcob Oct 29, 2021
9870550
Change the number of named maps deleted
moicalcob Oct 29, 2021
01501fa
Merge branch 'master' into feature/sc-172043/reef-admin-can-t-set-map…
moicalcob Nov 2, 2021
b3a0263
Bump assets version
Shylpx Nov 2, 2021
048ff8a
Merge branch 'master' into feature/sc-178449/notify-about-the-limit-o…
moicalcob Nov 4, 2021
36f4089
Update NEWS.md
Shylpx Nov 4, 2021
4a99d8c
Add new rake to change usernames
moicalcob Nov 8, 2021
e51ea11
Regenerate all published maps, instead of public ones
moicalcob Nov 8, 2021
de833a7
Merge branch 'master' into feature/sc-188883/abachiller-superadmin-ch…
Shylpx Nov 8, 2021
82dd384
Refactor after code review
moicalcob Nov 8, 2021
08ec69b
Merge pull request #16370 from CartoDB/feature/sc-190856/cch-users-ch…
moicalcob Nov 9, 2021
03df04a
Merge branch 'master' into feature/sc-172043/reef-admin-can-t-set-map…
moicalcob Nov 9, 2021
ffbe5d8
Merge pull request #16367 from CartoDB/feature/sc-172043/reef-admin-c…
moicalcob Nov 9, 2021
f46b62a
Upgrade assets version
moicalcob Nov 9, 2021
ad51b28
Merge branch 'master' into feature/sc-172043/reef-admin-can-t-set-map…
moicalcob Nov 9, 2021
3d7ec5c
Update NEWS.md
moicalcob Nov 9, 2021
fd290ac
Merge branch 'feature/sc-172043/reef-admin-can-t-set-map-to-private' …
moicalcob Nov 9, 2021
2e388c2
Merge pull request #16371 from CartoDB/feature/sc-172043/reef-admin-c…
moicalcob Nov 9, 2021
d424f64
Merge branch 'master' into bug/sc-95788/404-html-has-no-body
Shylpx Nov 9, 2021
8a0b4c5
Merge pull request #16369 from CartoDB/bug/sc-95788/404-html-has-no-body
Shylpx Nov 10, 2021
37cad92
Merge branch 'master' into feature/sc-188883/abachiller-superadmin-ch…
Shylpx Nov 10, 2021
2f63abe
Merge pull request #16363 from CartoDB/feature/sc-188883/abachiller-s…
Shylpx Nov 10, 2021
d10ae12
Add new resque job to delete multiple named maps
moicalcob Nov 11, 2021
497d02b
Replace match for start_with method
moicalcob Nov 11, 2021
1193ce3
Trigger build
moicalcob Nov 11, 2021
728448e
Merge branch 'master' into feature/sc-178449/notify-about-the-limit-o…
moicalcob Nov 11, 2021
58a611b
Add SAML random usernames choice
moicalcob Nov 11, 2021
3c98a86
Update NEWS.md
moicalcob Nov 11, 2021
ce3adaa
Fixes for testing
moicalcob Nov 11, 2021
81b7684
Fix tests
moicalcob Nov 12, 2021
2d573b0
Trigger build
moicalcob Nov 12, 2021
8b7f650
Fix tests
moicalcob Nov 12, 2021
d25e519
Fix username generation method
moicalcob Nov 15, 2021
d6dc25d
Merge pull request #16372 from CartoDB/feature-flag-random-username-saml
moicalcob Nov 15, 2021
da60ec9
Increase limit to 26
Shylpx Nov 16, 2021
157b55d
Update NEWS.md
Shylpx Nov 16, 2021
359b38c
Fix tests
Shylpx Nov 16, 2021
b60c73b
Merge pull request #16374 from CartoDB/feature/sc-192476/aberran-incr…
Shylpx Nov 16, 2021
7398b06
Check empty email config
moicalcob Nov 18, 2021
51caab2
Merge branch 'master' into feature/sc-178449/notify-about-the-limit-o…
moicalcob Nov 18, 2021
31d671b
Trigger build
moicalcob Nov 18, 2021
fc958d2
Invalidate sessions on session_salt issue
Shylpx Nov 22, 2021
1ebd395
Update NEWS.md
Shylpx Nov 22, 2021
a7f683d
Merge pull request #16376 from CartoDB/bug/sc-189965/alessandro238988…
Shylpx Nov 22, 2021
8fdab16
Add export_timeout to users
Shylpx Nov 22, 2021
bad150c
Change support_email env variable name
moicalcob Nov 22, 2021
a634226
Merge branch 'master' into feature/sc-178449/notify-about-the-limit-o…
moicalcob Nov 23, 2021
df18d5e
Fix tests and update NEWS.md
Shylpx Nov 26, 2021
7f8695f
Fix call to debounce
Shylpx Nov 29, 2021
4dce50c
Fix tests and update NEWS.md
Shylpx Nov 30, 2021
f85a0f1
Fix tests (again)
Shylpx Dec 3, 2021
82f20a3
Fix Hound issues
Shylpx Dec 3, 2021
c83621b
Merge pull request #16378 from CartoDB/bug/sc-79798/westermann-gruppe…
Shylpx Dec 9, 2021
372cfc1
Add check before destroying dependent visualizations
moicalcob Dec 20, 2021
b8f628e
Update NEWS.md
moicalcob Dec 20, 2021
1dc58a2
Test rubocop 1.12.0 version
jvillarf Dec 21, 2021
2c1daac
Test 1.23.0 rubocop version
jvillarf Dec 21, 2021
854aa63
Test activesupport 6.1.4.4 for rubocop
jvillarf Dec 21, 2021
de19a94
Revert "Test activesupport 6.1.4.4 for rubocop"
jvillarf Dec 21, 2021
47f2196
Revert "Test 1.23.0 rubocop version"
jvillarf Dec 21, 2021
e577b90
Revert "Test rubocop 1.12.0 version"
jvillarf Dec 21, 2021
820b3ed
Fixing rubocop integration
jvillarf Dec 21, 2021
464e3ff
Using ruby 2.5.7 version
jvillarf Dec 21, 2021
e64dd15
Update News.md
jvillarf Dec 21, 2021
b0118e8
Using rubyversion 2.5.8
jvillarf Dec 21, 2021
f06c6a1
Fix failing test
moicalcob Dec 21, 2021
e7efeb7
Apply temporary patch to FileUtils copy file function
moicalcob Dec 21, 2021
c2ad50f
Fix rubocop offenses
moicalcob Dec 21, 2021
aeabb09
Ignore line for rubocop
moicalcob Dec 21, 2021
a7df0ec
Ignore other rubocop offense
moicalcob Dec 21, 2021
47fd485
Add custom redirection
Shylpx Dec 22, 2021
a46159a
Update NEWS.md
Shylpx Dec 22, 2021
ba506a1
Try fixing tests
Shylpx Dec 22, 2021
e21e6db
Minor fixes
Shylpx Dec 22, 2021
29bfbbb
Minor fixes (again)
Shylpx Dec 22, 2021
5099187
Merge pull request #16382 from CartoDB/fixing_rubocop_integration
jvillarf Dec 22, 2021
d44d103
Merge branch 'master' into feature/sc-197121/coral-reef-admin-builder…
jvillarf Dec 22, 2021
1d4b619
Merge branch 'master' into feature/sc-198852/update-developers-carto-…
Shylpx Dec 22, 2021
fe825a0
Fix dependencies
Shylpx Dec 22, 2021
a1caab8
Fix Rubocop offenses
Shylpx Dec 22, 2021
7425fe5
Fix rubocop ofensse
moicalcob Dec 22, 2021
092913d
Merge branch 'feature/sc-197121/coral-reef-admin-builder-map-is-delet…
moicalcob Dec 22, 2021
8729c83
Fix another rubocop offense
moicalcob Dec 22, 2021
0121d83
Merge branch 'master' into feature/sc-178449/notify-about-the-limit-o…
moicalcob Dec 23, 2021
6704b14
Merge pull request #16383 from CartoDB/feature/sc-198852/update-devel…
Shylpx Dec 23, 2021
6ea3335
Fix rubocop offenses
moicalcob Dec 23, 2021
7138f55
Fix more rubocop offenses
moicalcob Dec 23, 2021
b637dce
Merge branch 'master' into feature/sc-178449/notify-about-the-limit-o…
moicalcob Dec 23, 2021
e36cbf4
Fix another rubocop offense
moicalcob Dec 23, 2021
93ff540
Merge branch 'feature/sc-178449/notify-about-the-limit-of-4096-named-…
moicalcob Dec 23, 2021
c5dcd58
Merge branch 'master' into feature/sc-189175/sql-api-oom-errors-when-…
Shylpx Dec 28, 2021
2fd1b21
Fix Rubocop offenses
Shylpx Dec 28, 2021
b8215b1
Merge pull request #16377 from CartoDB/feature/sc-189175/sql-api-oom-…
Shylpx Dec 29, 2021
a3d67c1
Upgrade Carto.js version
moicalcob Jan 3, 2022
64d26cc
Merge branch 'master' into feature/sc-89763/carto-js-teqstream-duplic…
moicalcob Jan 3, 2022
db2c2b6
Merge branch 'master' into feature/sc-197121/coral-reef-admin-builder…
moicalcob Jan 3, 2022
034341c
Merge branch 'master' into feature/sc-178449/notify-about-the-limit-o…
moicalcob Jan 3, 2022
77861c0
Upgrade assets version
moicalcob Jan 3, 2022
1af4ff6
Merge pull request #16384 from CartoDB/feature/sc-89763/carto-js-teqs…
moicalcob Jan 3, 2022
d19cf7d
Merge branch 'master' into feature/sc-197121/coral-reef-admin-builder…
moicalcob Jan 3, 2022
0970ec4
Merge pull request #16381 from CartoDB/feature/sc-197121/coral-reef-a…
moicalcob Jan 3, 2022
2c5958f
Add autoguessing capabilities to ArcGIS connector
moicalcob Jan 14, 2022
507b775
Update NEWS.md
moicalcob Jan 14, 2022
5aa761b
Fix some rubocop ofenses
moicalcob Jan 17, 2022
46b9122
Merge pull request #16385 from CartoDB/feature/sc-201043/denver-mile-…
moicalcob Jan 17, 2022
f14947e
Add new mail sender for internal notifications
moicalcob Feb 8, 2022
1fb5fda
Merge branch 'master' into feature/sc-178449/notify-about-the-limit-o…
moicalcob Feb 8, 2022
a0fc02e
Update analyses schema after giving properly permissions
Shylpx Feb 9, 2022
5274b1c
Update NEWS.md
Shylpx Feb 9, 2022
0456ec0
Merge pull request #16368 from CartoDB/feature/sc-178449/notify-about…
moicalcob Feb 9, 2022
6c1539a
Add 'invitation_token' to signup form (for Google Signup errors)
Shylpx Feb 14, 2022
a1d007e
Update NEWS.md
Shylpx Feb 14, 2022
aba4a2c
Merge branch 'master' into feature/sc-207379/sounddiplomacy-account-u…
Shylpx Feb 15, 2022
4aca21c
Merge pull request #16391 from CartoDB/feature/sc-206349/instacart-ad…
Shylpx Feb 15, 2022
76cd08e
Merge branch 'master' into feature/sc-207379/sounddiplomacy-account-u…
Shylpx Feb 15, 2022
8bd0b09
Merge pull request #16390 from CartoDB/feature/sc-207379/sounddiploma…
Shylpx Feb 15, 2022
fcf3bce
Bump assets version from v280 to v286
aitorch Mar 3, 2022
4ff467e
Update Changelog
aitorch Mar 3, 2022
0ada566
package version lock
aitorch Mar 3, 2022
afc8c89
Merge pull request #16399 from CartoDB/bump-assets-from-280-to-286
jvillarf Mar 3, 2022
c5d692a
Add notification about new platform and disable current banner
Shylpx Apr 4, 2022
2e1dc0a
Update NEWS.md and bump assets version
Shylpx Apr 4, 2022
f014f27
Fix CI and hound issues
Shylpx Apr 4, 2022
d8b1434
Update submodules to https
Shylpx Apr 4, 2022
d38a9ca
Fix typo
Shylpx Apr 4, 2022
6137103
Fix tests
Shylpx Apr 4, 2022
9fc0464
Updating github URLs to meet github security standards
jvillarf Apr 5, 2022
913dabf
Merge branch 'updating_github_submodule_urls_to_meet_gh_security_stan…
Shylpx Apr 5, 2022
98537f9
Updating carto.js submodule to v3.15.17
jvillarf Apr 5, 2022
9de991b
Using https for self main repository url
jvillarf Apr 5, 2022
7bb8455
Merge pull request #16407 from CartoDB/updating_github_submodule_urls…
jvillarf Apr 5, 2022
63d84ff
Merge branch 'master' into feature/sc-220191/notification-about-data-…
Shylpx Apr 5, 2022
c3ecb05
Merge pull request #16405 from CartoDB/feature/sc-220191/notification…
Shylpx Apr 5, 2022
36e6697
Reverse analysis order
Shylpx Apr 15, 2022
c66b18e
Update NEWS.md and package.json
Shylpx Apr 15, 2022
5fe699d
Update default value
Shylpx Apr 15, 2022
b002945
Fix tests
Shylpx Apr 18, 2022
9e9b653
Merge pull request #16412 from CartoDB/feature/sc-188915/avoid-recrea…
Shylpx Apr 19, 2022
b940abb
Update regular expression to allow Firefox/100.0
Shylpx May 9, 2022
d7c9098
Update NEWS.md
Shylpx May 9, 2022
9a29175
Merge pull request #16415 from CartoDB/bug/sc-228649/ecfiber-website-…
Shylpx May 9, 2022
5c685e9
Update banner
Shylpx Jun 13, 2022
0675937
Update NEWS.md
Shylpx Jun 13, 2022
54e0751
Fix typo
Shylpx Jun 13, 2022
e21a722
Log exception info
moicalcob Jun 13, 2022
3f042a5
Delete nil values in array
moicalcob Jun 13, 2022
52e577f
Update news
moicalcob Jun 13, 2022
31df61b
Make button non-closable
Shylpx Jun 13, 2022
7f1cd25
bug/sc-229113/all-users-add-fixed-banner-on-the-top-of
Shylpx Jun 13, 2022
e92083c
Update version
Shylpx Jun 13, 2022
10b10ba
Increase PR check timeouts
moicalcob Jun 14, 2022
dc58453
Increase CI timeout
moicalcob Jun 14, 2022
a3bb145
Merge pull request #16421 from CartoDB/feature/sc-226767/build-dedica…
moicalcob Jun 14, 2022
0bba5f0
Merge branch 'master' into bug/sc-229113/all-users-add-fixed-banner-o…
Shylpx Jun 14, 2022
64bc263
Merge pull request #16420 from CartoDB/bug/sc-229113/all-users-add-fi…
Shylpx Jun 14, 2022
0427b99
Avoid deleting a user if it has shared entities
Shylpx Jul 4, 2022
4c73412
Update NEWS.md and try to fix Rubocop
Shylpx Jul 4, 2022
aa105d2
Install rubocop-ast in advance
Shylpx Jul 4, 2022
5aacecd
Install rubocop-rails in advance
Shylpx Jul 4, 2022
a418114
Try another version
Shylpx Jul 4, 2022
c20e0ec
Try again
Shylpx Jul 4, 2022
30b4f93
Reset config
Shylpx Jul 4, 2022
9a29800
Removing the full path on the canonical tag for urls with filter para…
bdiniscia Jul 7, 2022
67aeb9b
Updated News and package.json
bdiniscia Jul 7, 2022
3bf17af
Merge pull request #16426 from CartoDB/feature/ch240818/canonical-url…
bdiniscia Jul 7, 2022
21d1dd3
Handle timeout swaping tables during sync process
moicalcob Jul 26, 2022
5e06df7
Update NEWS.md
moicalcob Jul 26, 2022
ae6c629
Merge pull request #16430 from CartoDB/bug/sc-246788/cc2-sync-failing…
moicalcob Jul 26, 2022
081212c
Add AUTODETECT_SIZE_LIMIT option when importing CSVs
moicalcob Jul 29, 2022
980cc0f
Update NEWS.md
moicalcob Jul 29, 2022
6784746
Merge pull request #16431 from CartoDB/bug/sc-240023/wscc-carto-4-car…
moicalcob Aug 1, 2022
b60ecc3
Log pg_locks when there is a timeout during a sync table importation
moicalcob Aug 1, 2022
3c64349
Merge pull request #16432 from CartoDB/bug/sc-246788/cc2-sync-failing…
moicalcob Aug 1, 2022
3c72971
Terminate locking queries when swapping tables during a synchronization
moicalcob Aug 2, 2022
2a8c5ca
Log locking queries
moicalcob Aug 2, 2022
2f80740
Merge branch 'master' into bug/sc-246788/cc2-sync-failing-randomly-3
moicalcob Aug 2, 2022
832beca
Merge pull request #16433 from CartoDB/bug/sc-246788/cc2-sync-failing…
moicalcob Aug 3, 2022
d9ef0bc
increase cloud build timeout (#16437)
alberhander Sep 12, 2022
a823924
Merge branch 'master' into bug/sc-232062/check-shared-entities-when-u…
Shylpx Nov 10, 2022
1f25b5f
Merge pull request #16424 from CartoDB/bug/sc-232062/check-shared-ent…
Shylpx Nov 10, 2022
7a713be
Add deprecation notice in docs
moicalcob Dec 16, 2022
6d6c856
Fix readthedocs sphinx open source documentation
jvillarf Jan 2, 2023
a98c59f
Dummy commit
jvillarf Jan 2, 2023
3e6d1b1
Dummy change
moicalcob Jan 3, 2023
ad19924
Merge pull request #16446 from CartoDB/feature/sc-277742/add-deprecat…
moicalcob Jan 3, 2023
a3a9693
Merge branch 'master' into fix_readthedocs_docs
jvillarf Jan 3, 2023
6b9010e
Change popup style
moicalcob Jan 3, 2023
9518ec6
Merge pull request #16447 from CartoDB/fix_readthedocs_docs
moicalcob Jan 3, 2023
0af73ea
Add GeoParquet link to Data Catalog (#16453)
Josmorsot Sep 15, 2023
37f6003
Add pre/postinstall scripts to prevent 'npm install' command from fai…
jmgaya May 15, 2024
3ead396
Use npm config instead of GIT global config
jmgaya May 15, 2024
c3b9e5b
Revert "Use npm config instead of GIT global config"
jmgaya May 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ jobs:
uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5
ruby-version: 2.5.8
- run: 'gem install activesupport -v 6.1.4.4'
- name: Rubocop linter
uses: reviewdog/action-rubocop@v1
with:
rubocop_version: 1.12.1
rubocop_version: 1.23.0
github_token: ${{ secrets.github_token }}
reporter: github-pr-check
level: error
Expand Down
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[submodule "lib/assets/javascripts/cdb"]
path = lib/assets/javascripts/cdb
url = git://github.com/CartoDB/carto.js.git
url = git@github.com:CartoDB/carto.js.git
[submodule "app/assets/stylesheets/old_common"]
path = app/assets/stylesheets/old_common
url = git://github.com/CartoDB/cartodb.css.git
url = git@github.com:CartoDB/cartodb.css.git
[submodule "lib/sql"]
path = lib/sql
url = git://github.com/CartoDB/cartodb-postgresql.git
url = git@github.com:CartoDB/cartodb-postgresql.git
[submodule "private"]
path = private
url = git@github.com:CartoDB/cartodb-private.git
4 changes: 4 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version: 2

submodules:
exclude: all
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require:
- rubocop-rspec

AllCops:
TargetRubyVersion: 2.4
TargetRubyVersion: 2.5
Exclude:
- "vendor/**/*"
- "db/schema.rb"
Expand Down
34 changes: 33 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ Development
-----------

### NOTICES
- None yet
- None yet

### Features
* Display GeoParquet link in Catalog [16453](https://github.com/CartoDB/cartodb/pull/16453)
* Display notifications about the new CARTO platform release [16352](https://github.com/CartoDB/cartodb/pull/16352)
* Upgrade to deck.gl 8.5.6 [16338](https://github.com/CartoDB/cartodb/pull/16338)
* Update DO Catalog dependencies and some changes to use bundle on CARTO Workspace [#16325](https://github.com/CartoDB/cartodb/pull/16325)
Expand All @@ -17,24 +18,41 @@ Development
* Upgrade to CARTO Viewer v1.0.8 [16347](https://github.com/CartoDB/cartodb/pull/16347)
* Show user's database location in profile [16349](https://github.com/CartoDB/cartodb/pull/16349)
* Setting to enable/disable import notifications [16354](https://github.com/CartoDB/cartodb/pull/16354)
* Setting to enable/disable random username generation on SAML authentication process [16372](https://github.com/CartoDB/cartodb/pull/16372)
* Add type guessing capabilities to the ArcGIS connector [#16385](https://github.com/CartoDB/cartodb/pull/16385)
* Add notification about data migrations to CARTO 3 [#16405](https://github.com/CartoDB/cartodb/pull/16405)
* Update banner to notify about data migrations to CARTO 3 [#16420](https://github.com/CartoDB/cartodb/pull/16420)

### Bug fixes / enhancements
- Removing the full path from urls with filter parameters in the Spatial Data Catalog [#16426](https://github.com/CartoDB/cartodb/pull/16426)
- Fix rubocop integration [#16382](https://github.com/CartoDB/cartodb/pull/16382)
- Add marginTop to Page when notification is displayed [#16355](https://github.com/CartoDB/cartodb/pull/16355)
- Add "element" param to DO-Catalog entry function [#16343](https://github.com/CartoDB/cartodb/pull/16343)
- Add new DO Catalog route for internal usage [#16342](https://github.com/CartoDB/cartodb/pull/16342)
- Propagate 'invitation_token' when there is an error signing-up with Google [#16391](https://github.com/CartoDB/cartodb/pull/16391)
- Reverse analysis selection order on new widget form [#16412](https://github.com/CartoDB/cartodb/pull/16412)
- Improve info for :update_user command [#16363](https://github.com/CartoDB/cartodb/pull/16363)
- Disable email validation in DO Premium Subscriptions [#16309](https://github.com/CartoDB/cartodb/pull/16309)
- Invalidate sessions on 'session_salt' issue [#16376](https://github.com/CartoDB/cartodb/pull/16376)
- Hide sharing tab from viewer in on-premises [#16299](https://github.com/CartoDB/cartodb/pull/16299)
- Update browser version checker to allow Firefox/100.0 [#16415](https://github.com/CartoDB/cartodb/pull/16415)
- Update analysis schemas after giving required permissions on user promotion [#16390](https://github.com/CartoDB/cartodb/pull/16390)
- Add timeout for SQL API exports [#16377](https://github.com/CartoDB/cartodb/pull/16377)
- Avoid deleting a user if it has shared entities [#16424](https://github.com/CartoDB/cartodb/pull/16424)
- 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)
- Fix schema name in layers created by free users [#16307](https://github.com/CartoDB/cartodb/pull/16307)
- Limit start parameter of Dropbox connector [#16264](https://github.com/CartoDB/cartodb/pull/16264)
- Fix messages about layer limit being reached [#16360](https://github.com/CartoDB/cartodb/pull/16360)
- Fix 404.html page [#16369](https://github.com/CartoDB/cartodb/pull/16369)
- Fix deck.gl dependency conflicts [#16339](https://github.com/CartoDB/cartodb/pull/16339)
- Migrate Redis DO subscription information in inter-cloud migrations [#16315](https://github.com/CartoDB/cartodb/pull/16315)
- OauthApps restricted by default [#16304](https://github.com/CartoDB/cartodb/pull/16304)
- Support staging hostname in the catalog [#16258](https://github.com/CartoDB/cartodb/pull/16258)
- Add custom redirection on `developers.carto.com/login` [#16383](https://github.com/CartoDB/cartodb/pull/16383)
- Fix user migration export/import logs [#16298](https://github.com/CartoDB/cartodb/pull/16298)
- Fix race condition when DO subscriptions are created [#16311](https://github.com/CartoDB/cartodb/pull/16311)
- Allow the usage of WMTS URLs with parameters to create custom basemaps [#16271](https://github.com/CartoDB/cartodb/pull/16271)
Expand All @@ -46,6 +64,7 @@ Development
- Fix verification process for active users [#16337](https://github.com/CartoDB/cartodb/pull/16337)
- Avoid updating analysis nodes more than once when moving layers in Builder [#16279](https://github.com/CartoDB/cartodb/pull/16279)
- Fix subscription/sample filter for datasets [#16254](https://github.com/CartoDB/cartodb/pull/16254)
- Fix form to search dataset when generating a new API key [#16378](https://github.com/CartoDB/cartodb/pull/16378)
- Use fully qualified table name while creating a new map from a shared dataset [#16241](https://github.com/CartoDB/cartodb/pull/16241)
- Render tileset viewer features in front of basemap [#16333](https://github.com/CartoDB/cartodb/pull/16333)
- Rake task to migrate legacy synchronizations [#16353](https://github.com/CartoDB/cartodb/pull/16353)
Expand All @@ -70,6 +89,19 @@ Development
- Fix Auth URL generation while establishing a connection with Google Drive [#16357](https://github.com/CartoDB/cartodb/pull/16357)
- Fix adding license metadata to a dataset [#16356](https://github.com/CartoDB/cartodb/pull/16356)
- Fix notifications when organization seats limit is reached [#16359](https://github.com/CartoDB/cartodb/pull/16359)
- Notify Support when a user is reaching the named maps limit [#16368](https://github.com/CartoDB/cartodb/pull/16368)
- Remove old named maps when a user is reaching the named maps limit [#16368](https://github.com/CartoDB/cartodb/pull/16368)
- Fix privacy dropdown when user is editing a map [#16367](https://github.com/CartoDB/cartodb/pull/16367)
- Add a new rake to update a user username [#16370](https://github.com/CartoDB/cartodb/pull/16370)
- Add a check before destroying user tables in order to avoid deleting dependent maps [#16381](https://github.com/CartoDB/cartodb/pull/16381)
- Fix duplicated attributions in datasets [#16384](https://github.com/CartoDB/cartodb/pull/16384)
- Moving assets cdn domain from global.ssl.fastly.net to libs.cartocdn.com [#16399](https://github.com/CartoDB/cartodb/pull/16399)
- Fix error while rolling back a user migration from one cloud to another [#16421](https://github.com/CartoDB/cartodb/pull/16421)
- Add retry if a timeout is thrown when swapping the tables related with a sync process [#16430](https://github.com/CartoDB/cartodb/pull/16430)
- Add AUTODETECT_SIZE_LIMIT to ogr2ogr process when guessing CSV file column types [#16431](https://github.com/CartoDB/cartodb/pull/16431)
- Log pg locks if there is any problem during a sync table import process [#16432](https://github.com/CartoDB/cartodb/pull/16432)
- Check pg locks during sync table swap and terminate locking queries [#16433](https://github.com/CartoDB/cartodb/pull/16433)
- Add deprecation notice in docs [#16446](https://github.com/CartoDB/cartodb/pull/16446)

4.45.0 (2021-04-14)
-------------------
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [DEPRECATED]

Hey! This content applies only to previous CARTO products.

Please check if it's relevant to your use case. On October 2021 we released the current version of our platform.
You can learn more and read the latest documentation at docs.carto.com

# What is CARTO?

[![Code Climate](https://codeclimate.com/github/CartoDB/cartodb20.png)](https://codeclimate.com/github/CartoDB/cartodb20)
Expand Down
7 changes: 6 additions & 1 deletion app/commands/central_user_commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ def initialize(notifications_topic:, logger:)
def update_user(message)
payload = message.payload
Carto::Common::CurrentRequest.with_request_id(message.request_id) do
logger.info(message: 'Processing :update_user', class_name: self.class.name)
logger.info(
message: 'Processing :update_user',
remote_user_id: payload['remote_user_id'],
class_name: self.class.name
)

user_id = payload.delete('remote_user_id')

return unless user_id.present? && payload.any?
Expand Down
1 change: 1 addition & 0 deletions app/controllers/admin/organizations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def auth_update
@organization.auth_github_enabled = attributes[:auth_github_enabled]
@organization.strong_passwords_enabled = attributes[:strong_passwords_enabled]
@organization.password_expiration_in_d = attributes[:password_expiration_in_d]
@organization.random_saml_username = attributes[:random_saml_username]
@organization.update_in_central
@organization.save(raise_on_failure: true)

Expand Down
3 changes: 2 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def current_viewer
@current_viewer
rescue Carto::ExpiredSessionError => e
request.reset_session
current_user.try(:invalidate_all_sessions!)
not_authorized(e)
end

Expand Down Expand Up @@ -415,7 +416,7 @@ def browser_is_html5_compliant?
return true if user_agent.nil?

banned_regex = [
/msie [0-9]\./, /safari\/[0-4][0-2][0-2]/, /opera\/[0-8].[0-7]/, /firefox\/[0-2].[0-5]/
/msie [0-9]\./, /safari\/[0-4][0-2][0-2]/, /opera\/[0-8].[0-7]/, /firefox\/[0-2]\.[0-5]/
]

if banned_regex.map { |re| user_agent.match(re) }.compact.first
Expand Down
7 changes: 4 additions & 3 deletions app/controllers/carto/api/organization_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def to_poro
mapzen_routing_block_price: @organization.mapzen_routing_block_price,
geocoder_provider: @organization.geocoder_provider,
isolines_provider: @organization.isolines_provider,
routing_provider: @organization.routing_provider,
map_views_quota: @organization.map_views_quota,
routing_provider: @organization.routing_provider,
map_views_quota: @organization.map_views_quota,
twitter_datasource_quota: @organization.twitter_datasource_quota,
map_view_block_price: @organization.map_view_block_price,
geocoding_block_price: @organization.geocoding_block_price,
Expand All @@ -49,7 +49,8 @@ def to_poro
admin_email: @organization.admin_email,
avatar_url: @organization.avatar_url,
user_count: @organization.users.count,
password_expiration_in_d: @organization.password_expiration_in_d
password_expiration_in_d: @organization.password_expiration_in_d,
random_saml_username: @organization.random_saml_username
}
end

Expand Down
4 changes: 2 additions & 2 deletions app/controllers/carto/api/organization_users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def destroy
force_destroy = params[:force].present?

if !force_destroy && @user.has_shared_entities?
error_message = "Can't delete @user. 'Has shared entities"
render_jsonp(error_message, 410 ) and return
error_message = "Can't delete user. Has shared entities"
render_jsonp(error_message, 401) and return
end

@user.set_force_destroy if force_destroy
Expand Down
8 changes: 7 additions & 1 deletion app/controllers/carto/api/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,13 @@ def delete_me
deletion_password_confirmation = params[:deletion_password_confirmation]

if user.needs_password_confirmation? && !user.validate_old_password(deletion_password_confirmation)
render_jsonp({ message: "Error deleting user: #{PASSWORD_DOES_NOT_MATCH_MESSAGE}" }, 400) and return
render_jsonp({ message: "Error deleting user: #{PASSWORD_DOES_NOT_MATCH_MESSAGE}" }, 400)
return
end

if user.has_shared_entities?
render_jsonp({ message: "User can't be deleted because there are shared entities. Please, unshare or delete them and try again." }, 401)
return
end

user.destroy_account
Expand Down
18 changes: 16 additions & 2 deletions app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class SessionsController < ApplicationController
before_filter :load_organization
before_filter :initialize_oauth_config
before_filter :api_authorization_required, only: :show
before_action :custom_redirect, only: :new
after_action :set_last_mfa_activity, only: [:multifactor_authentication, :multifactor_authentication_verify_code]

PLEASE_LOGIN = 'Please, log in to continue using CARTO.'.freeze
Expand Down Expand Up @@ -186,10 +187,17 @@ def saml_user_not_in_carto
return
end

organization_id = warden.env['warden.options'][:organization_id]
organization = Carto::Organization.find(organization_id)
saml_email = warden.env['warden.options'][:saml_email]
username = CartoDB::UserAccountCreator.email_to_username(saml_email)

if organization.random_saml_username
username = CartoDB::UserAccountCreator.random_saml_username
else
username = CartoDB::UserAccountCreator.email_to_username(saml_email)
end

unique_username = Carto::UsernameProposer.find_unique(username)
organization_id = warden.env['warden.options'][:organization_id]

create_user(
username: unique_username,
Expand Down Expand Up @@ -309,6 +317,12 @@ def saml_user?

private

# HACK: CARTO internals custom redirection
# https://app.shortcut.com/cartoteam/story/198852/update-developers-carto-com-login-redirection-to-carto-com-signin
def custom_redirect
redirect_to('https://carto.com/signin/') if CartoDB.extract_subdomain(request) == 'developers'
end

def mfa_request?
params[:code].presence || params[:skip].presence
end
Expand Down
7 changes: 7 additions & 0 deletions app/mailers/reporter_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ def trending_maps_report(mail_to, trending_visualizations)

mail to: mail_to, subject: @subject
end

def named_maps_near_the_limit(message)
mail_to = Cartodb.get_config(:mailer, 'support_email')
mail_from = Cartodb.get_config(:mailer, 'internal_notifications_email')

mail from: mail_from, to: mail_to, subject: message if mail_to && mail_from
end
end
2 changes: 1 addition & 1 deletion app/models/carto/helpers/user_commons.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module Carto::UserCommons
salesforce_datasource_enabled builder_enabled geocoder_provider isolines_provider
routing_provider engine_enabled mapzen_routing_quota
mapzen_routing_block_price soft_mapzen_routing_limit no_map_logo org_admin
user_render_timeout database_render_timeout frontend_version asset_host
user_render_timeout database_render_timeout export_timeout frontend_version asset_host
state rate_limit_id public_map_quota regular_api_key_quota
maintenance_mode private_map_quota public_dataset_quota]

Expand Down
1 change: 1 addition & 0 deletions app/models/carto/user_migration_import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def do_import_metadata(package, service)
raise e
rescue StandardError => e
log.append('=== Error importing metadata. Rollback! ===')
log.append(e.backtrace.join("\n"))
service.rollback_import_from_directory(package.meta_dir)
raise e
end
Expand Down
5 changes: 4 additions & 1 deletion app/models/carto/user_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ def min_value

module Carto
class UserTable < ActiveRecord::Base

attr_accessor :skip_destroy_dependent_visualizations

PRIVACY_PRIVATE = 0
PRIVACY_PUBLIC = 1
PRIVACY_LINK = 2
Expand Down Expand Up @@ -68,7 +71,7 @@ class UserTable < ActiveRecord::Base
before_destroy :ensure_not_viewer
before_destroy :cache_dependent_visualizations, unless: :destroyed?
before_destroy :backup_visualizations, unless: :destroyed?
after_destroy :destroy_dependent_visualizations
after_destroy :destroy_dependent_visualizations, unless: :skip_destroy_dependent_visualizations
after_destroy :service_after_destroy

def geometry_types
Expand Down
8 changes: 4 additions & 4 deletions app/models/concerns/cartodb_central_synchronizable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def allowed_attributes_from_central(action)
salesforce_datasource_enabled geocoder_provider
isolines_provider routing_provider engine_enabled builder_enabled
mapzen_routing_quota mapzen_routing_block_price no_map_logo auth_github_enabled
password_expiration_in_d inherit_owner_ffs)
password_expiration_in_d inherit_owner_ffs random_saml_username)
when :update
%i(seats viewer_seats quota_in_bytes display_name description website
discus_shortname twitter_username geocoding_quota map_views_quota
Expand All @@ -96,7 +96,7 @@ def allowed_attributes_from_central(action)
salesforce_datasource_enabled geocoder_provider
isolines_provider routing_provider engine_enabled builder_enabled
mapzen_routing_quota mapzen_routing_block_price no_map_logo auth_github_enabled
password_expiration_in_d inherit_owner_ffs)
password_expiration_in_d inherit_owner_ffs random_saml_username)
end
elsif user?
%i(account_type admin org_admin crypted_password database_host
Expand All @@ -115,7 +115,7 @@ def allowed_attributes_from_central(action)
salesforce_datasource_enabled viewer geocoder_provider
isolines_provider routing_provider engine_enabled builder_enabled
mapzen_routing_quota mapzen_routing_block_price soft_mapzen_routing_limit no_map_logo
user_render_timeout database_render_timeout state industry company phone job_role
user_render_timeout database_render_timeout export_timeout state industry company phone job_role
password_reset_token password_reset_sent_at maintenance_mode company_employees use_case private_map_quota
session_salt public_dataset_quota dashboard_viewed_at email_verification_token email_verification_sent_at)
end
Expand All @@ -129,7 +129,7 @@ def allowed_attributes_to_central(action)
when :update
allowed_attributes = %i(seats viewer_seats display_name description website discus_shortname twitter_username
auth_username_password_enabled auth_google_enabled password_expiration_in_d
inherit_owner_ffs)
inherit_owner_ffs random_saml_username)
attributes.symbolize_keys.slice(*allowed_attributes).merge(name: name)
end
elsif user?
Expand Down
Loading
Loading