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

Allow a list of schemas when switching using schemas #568

Open
wants to merge 315 commits into
base: development
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
315 commits
Select commit Hold shift + click to select a range
37d2e88
Removed rubocop
rpbaltazar Mar 22, 2020
1e29dd4
Upgrade jruby version
rpbaltazar Mar 22, 2020
d0be966
Skip init if we're running webpacker:compile
rpbaltazar Mar 22, 2020
aef2461
WIP - initial customization of the console
rpbaltazar Feb 20, 2020
085e8e5
[Resolves #14] Adds custom console methods
rpbaltazar Mar 22, 2020
4703178
Cleanup tenant list method
rpbaltazar Mar 22, 2020
1134b8d
[#14] Updates the readme and disables rails/output rubocop warning
rpbaltazar Mar 22, 2020
88fcae8
Address rubocop errors
rpbaltazar Mar 22, 2020
0779d98
Updated badges
rpbaltazar Mar 23, 2020
841fbca
support rails 6.1, remove warnings
jean-francois-labbe Feb 13, 2020
54c9c72
fix rubocop
jean-francois-labbe Mar 23, 2020
b3f2dc1
Cleanup travis matrix
rpbaltazar Mar 23, 2020
2b870ce
JRuby does not guarantee rails 4
rpbaltazar Mar 24, 2020
b39c183
Merge pull request #22 from rails-on-services/development
rpbaltazar Apr 1, 2020
7e5a2b2
Fix gemspec open versions and updated version
rpbaltazar Apr 1, 2020
44b95db
Merge pull request #25 from rails-on-services/development
rpbaltazar Apr 1, 2020
504588e
Merge pull request #7 from jean-francois-labbe/fix-rails-6-1
rpbaltazar Apr 2, 2020
fa0f0f0
[#11] Remove old ruby and rails versions from the supported versions
rpbaltazar Mar 22, 2020
91b1d68
Fixing rubocop vesion and ignoring gemfiles
rpbaltazar Mar 22, 2020
ad32b08
[CI] removed unused exclusions
rpbaltazar Apr 2, 2020
d527441
[Chore] ran rubocop safe autocorrect
rpbaltazar Apr 2, 2020
b609d48
Remove test related files from gem
rpbaltazar Apr 2, 2020
23bcbbd
[Chore] fixed rubocop warning
rpbaltazar Apr 2, 2020
2e0256b
[Chore] refactored files to their names
rpbaltazar Apr 7, 2020
3213a4e
[Chore] removed commented block
rpbaltazar Apr 7, 2020
155f788
[i-27] Added tenant_connected_to to replace active record base connec…
rpbaltazar Apr 3, 2020
12cc206
[i-27] removed special method for switching tenant and adding alias f…
rpbaltazar Apr 3, 2020
2780a1e
[i-27] fix rubocop
rpbaltazar Apr 3, 2020
d145a51
[i-27] moving monkeypatches to their folders
rpbaltazar Apr 6, 2020
0595ff0
[i-27] Adding apartment model that resolves arel table based on apart…
rpbaltazar Apr 6, 2020
e50e324
[i-27] skiping table name modification if not using schemas
rpbaltazar Apr 7, 2020
b513bd8
[i-27] removed commented code
rpbaltazar Apr 7, 2020
72c0c32
[i-27] using config to enable schema prepend
rpbaltazar Apr 7, 2020
ed71488
[i-27] added prepend_tenant_name config to spec
rpbaltazar Apr 7, 2020
94de7f6
[i-27] renamed method
rpbaltazar Apr 7, 2020
2d1819d
[i-27] attempt to run tests with apartment model
rpbaltazar Apr 7, 2020
421d825
[i-27] updating test
rpbaltazar Apr 7, 2020
651288c
[i-27] creating schema
rpbaltazar Apr 7, 2020
be771ed
[i-27] fix test setup
rpbaltazar Apr 7, 2020
79e07f4
[i-27] fix failing test
rpbaltazar Apr 7, 2020
6e61591
[i-27] duplicate test coverage for jdbc postgresql adapter
rpbaltazar Apr 7, 2020
23e9e1e
[i-27] fix rubocop
rpbaltazar Apr 7, 2020
d3e695e
[i-27] updated readme
rpbaltazar Apr 7, 2020
27fc97a
[i-27] remove extra whitespaces
rpbaltazar Apr 7, 2020
29c7434
[i-27] for some reason there is an extra space in the output of to_sql
rpbaltazar Apr 7, 2020
f5b833f
using the other approach for updating the tenant based on the connect…
rpbaltazar Apr 8, 2020
55368fb
Fixed loading path
rpbaltazar Apr 8, 2020
c6eda8e
patch postgresql arel visit table to determine which schema to use
rpbaltazar Apr 8, 2020
f78afc9
cached find by statement to use tenant for cache key
rpbaltazar Apr 8, 2020
b0ad53c
Address rubocop errors
rpbaltazar Apr 8, 2020
b6bdcdf
Fixed failing specs
rpbaltazar Apr 8, 2020
d141639
Fixed cache key format. Added notes on cached find_by_statement
rpbaltazar Apr 9, 2020
ff12543
[Resolves #27] Some errors were being thrown due to caching issues
rpbaltazar Apr 9, 2020
5d76a8c
[#31] Updated travis ruby versions
rpbaltazar Apr 8, 2020
0ba04de
[#31] Added jruby head to test matrix
rpbaltazar Apr 8, 2020
6d754f5
[#31] Excluding 2.4.10 and rails 6 combination
rpbaltazar Apr 8, 2020
80bb3a4
[#31] Using bundler 2.x
rpbaltazar Apr 8, 2020
e260dfc
[#31] relaxed bundler development dependency
rpbaltazar Apr 9, 2020
8b32e93
[Resolves #31] Add latest ruby verisons to test matrix
rpbaltazar Apr 9, 2020
8b4723d
[#35] update cache key to use a string or an array depending on what …
rpbaltazar Apr 9, 2020
8439fc4
[Resolves #35] update cache key to use a string or an array
rpbaltazar Apr 9, 2020
b27311d
Added before hook to connected to to try to set the tenant
rpbaltazar Apr 14, 2020
3fa374a
[Chore] Removed references to allow prepend tenant name
rpbaltazar Apr 15, 2020
b19ba24
[Resolves #27] Added before hook to connected to to try to set the te…
rpbaltazar Apr 15, 2020
d8097ae
Merge pull request #44 from rails-on-services/development
rpbaltazar May 5, 2020
b99748a
[Release 2.5.0]
rpbaltazar May 5, 2020
bbccc78
Merge branch 'development'
rpbaltazar May 5, 2020
296750c
[#42] added simple test to check callbacks are called. each adapter i…
rpbaltazar May 4, 2020
74d724b
[#42] improved test basing it on the reported issue
rpbaltazar May 5, 2020
d575117
[#42] Fixed failing test
rpbaltazar May 5, 2020
ca54606
[#42] connect to new ensures reset if tenant nil
rpbaltazar May 5, 2020
61ee211
[#42] Add test coverage to remaining adapters
rpbaltazar May 5, 2020
bed491a
[Resolves #42] After switch callback not working with nil argument
rpbaltazar May 5, 2020
9022aa5
[#26] Add tenant_present_check configuration and inspecting it before…
rpbaltazar May 5, 2020
aabab8a
[#26] Check for configuration also on jdbc postgresql adapter
rpbaltazar May 5, 2020
1dfa007
[#26] Fixed failing specs by ensuring configuration does not get modi…
rpbaltazar May 5, 2020
41393a0
[#26] simplified test setup
rpbaltazar May 5, 2020
315b8cb
[#26] added readme description for the configuration
rpbaltazar May 5, 2020
49acd70
[Resolves #26] Support configuration for skip checking of schema exis…
rpbaltazar May 5, 2020
9e1d18d
Update console.rb
JeremiahChurch May 7, 2020
edcc207
Update custom_console.rb
JeremiahChurch May 7, 2020
0e934bd
Update custom_console.rb
JeremiahChurch May 7, 2020
0385703
Update custom_console.rb
JeremiahChurch May 7, 2020
c5703b4
[Resolves #41] Add console welcome message
rpbaltazar May 11, 2020
9dad02e
[Chore] Fix Rubocop
rpbaltazar May 11, 2020
a0d5ce5
[Chore] Updated rubocop to run on PR as well
rpbaltazar May 11, 2020
e95102d
[#37] Pry changed internal implementation after 0.13
rpbaltazar May 14, 2020
75a7441
[#37] Cleanup tenant info message
rpbaltazar May 14, 2020
366a284
Version bump
rpbaltazar May 14, 2020
06182ba
Merge pull request #48 from rails-on-services/development
rpbaltazar May 14, 2020
26fc746
Avoid getting a connection to the database before it's necessary
fsateler Apr 13, 2020
73dc066
[Fix] Custom Console should require apartment console
rpbaltazar May 20, 2020
1a27a89
[#52] enhance after db create
rpbaltazar May 20, 2020
2c51aab
[#52] fixing gem requirements based in test output
rpbaltazar May 25, 2020
52874a8
[52] fixed failing specs
rpbaltazar May 25, 2020
b625e03
[#52] Addressed rubocop issues
rpbaltazar May 25, 2020
833a145
[#52] fixed failing specs
rpbaltazar May 25, 2020
7c2fe95
[#52] added logging to debug on ci
rpbaltazar May 25, 2020
ac98968
[#52] ci uses lower case
rpbaltazar May 25, 2020
e94a442
[#52] fix rubocop
rpbaltazar May 25, 2020
f8eefc4
fix: reset sequence_name after tenant switch
fsateler May 19, 2020
3cfaeb4
fix init after reload on development
fsateler May 19, 2020
443bebf
Excluding default schema from tasks
rpbaltazar Jun 1, 2020
1dd198d
Merge pull request #59 from rails-on-services/development
rpbaltazar Jun 2, 2020
f16105a
Version bump
rpbaltazar Jun 2, 2020
5a84b77
Merge pull request #60 from rails-on-services/development
rpbaltazar Jun 2, 2020
e41c682
Add database and schema to active record log
May 28, 2020
8c84e97
Use diffend.io proxy
rpbaltazar Jun 3, 2020
eb95ac3
[Resolves #62] added Missing notes in history.md
rpbaltazar Jun 7, 2020
cbf4f22
Configure story branch
rpbaltazar Jun 14, 2020
e6b4cae
Remove depracated tld_length config option:
choznerol Jun 20, 2020
ee8649d
installing rubocop and running it before tests
rpbaltazar Jun 24, 2020
f9523d0
installing and running
rpbaltazar Jun 24, 2020
3d95c22
explicetly including rubocop
rpbaltazar Jun 24, 2020
d928ccb
attempt to run rubopcop on travis
rpbaltazar Jun 24, 2020
523dc07
added to ignore list vendor dir
rpbaltazar Jun 24, 2020
c642bb7
re-enable travis matrix
rpbaltazar Jun 24, 2020
9531971
removed rubocop github action
rpbaltazar Jun 24, 2020
6f4086a
[70] moved methods to module
rpbaltazar Jun 24, 2020
dcb627c
[70] added module
rpbaltazar Jun 24, 2020
1610f57
[#70] fix rubocop
rpbaltazar Jun 24, 2020
59851e9
[61] do not attempt connection with nil tenant in mysql
rpbaltazar Jun 24, 2020
9d1d2ae
[#61] fixed rubocop
rpbaltazar Jun 24, 2020
aae15e0
[#61] removed setting default schema in apartment. mysql reset return…
rpbaltazar Jun 25, 2020
9c42715
[#61] replaced default_schema with default_tenant
rpbaltazar Jun 25, 2020
aba9dbf
[#61] revert history
rpbaltazar Jun 25, 2020
26e1443
[#61] setting default tenant on postgresql config
rpbaltazar Jun 25, 2020
e752857
[#61] fixed merge conflict leftover
rpbaltazar Jun 25, 2020
3d32768
[#61] apartment default tenant is only used to initialize the adapter…
rpbaltazar Jun 25, 2020
2d7ab16
[#61] dont cache the default tenant
rpbaltazar Jun 25, 2020
4c44f0c
Version Bump to 2.7.0
rpbaltazar Jun 26, 2020
c51f826
Merge pull request #77 from rails-on-services/development
rpbaltazar Jun 26, 2020
5ae5d9b
update rake
ahorek Jun 25, 2020
a1de9d6
[Chore] renamed gemspec to match gem name
rpbaltazar Jun 27, 2020
b6af077
[#82] remove create from enhanced tasks and seed requires create to h…
rpbaltazar Jun 26, 2020
f508098
Version Bump to 2.7.1
rpbaltazar Jun 27, 2020
6f7ecf2
Update history with the recent releases
rpbaltazar Jun 27, 2020
581a0ae
Merge pull request #84 from rails-on-services/development
rpbaltazar Jun 27, 2020
96f36fd
[#81] check for var existence before
rpbaltazar Jul 12, 2020
99dfda8
[#80] added changelog action
rpbaltazar Jul 12, 2020
b506bc7
[#80] updated action
rpbaltazar Jul 12, 2020
ea14412
[#80] ran automatic changelog generator to create changelog file
rpbaltazar Jul 12, 2020
49ab159
[#80] made history md compatible with changelog automation
rpbaltazar Jul 12, 2020
c05abbd
using official rubocop version and ran auto-correct
rpbaltazar Jul 16, 2020
53eae04
updated rubocop version
rpbaltazar Jul 16, 2020
ab15ca7
ran autocorrect
rpbaltazar Jul 16, 2020
5566b8f
addressed some of the rubocop offenses and added todo
rpbaltazar Jul 16, 2020
ff648f1
cleanup line length
rpbaltazar Jul 16, 2020
a8c646b
diffend was causing some trouble updating the gems
rpbaltazar Jul 16, 2020
97ec6c3
[#92] calling reload to ensure the adatper is re-evaluated
rpbaltazar Jul 16, 2020
029e174
[#92] added test coverage for bug report
rpbaltazar Jul 16, 2020
bb584b5
[#92] added comment on test
rpbaltazar Jul 16, 2020
6611731
[#92] relying on subject to ensure correct class in test
rpbaltazar Jul 16, 2020
143fa4b
[Chore] Update github actions to generate changelog to development br…
rpbaltazar Jul 17, 2020
dad34d4
only push if there is something to commit
rpbaltazar Jul 17, 2020
c1fd682
Updated CHANGELOG.md
actions-user Jul 17, 2020
1c65772
Version Bump - 2.7.2
rpbaltazar Jul 17, 2020
eaeb1e8
Merge pull request #96 from rails-on-services/development
rpbaltazar Jul 17, 2020
41327f5
Updated CHANGELOG.md
actions-user Jul 17, 2020
3068d91
[#98] attempt to push to master the changelog and cherry pick it to d…
rpbaltazar Jul 17, 2020
ee676b0
[#98] fixed setting of commit_hash var
rpbaltazar Jul 17, 2020
baa994c
Updated CHANGELOG.md
actions-user Jul 17, 2020
0b624d6
Revert unsafe initializer
lunks Oct 26, 2020
3c77ca2
Inherit from correct class
lunks Oct 28, 2020
e21ce12
Fix test, remove unneeded test now that code was reverted
lunks Oct 28, 2020
baa9975
Allow rails to be initialized without connecting to the database
lunks Oct 28, 2020
6db829e
[#98] new approach
rpbaltazar Jul 17, 2020
2087f7a
[#86] ensure listed tenants are created before trying to migrate them…
rpbaltazar Jul 12, 2020
c80e57a
[#86] addressed rubocop
rpbaltazar Jul 16, 2020
fa45a93
using transaction
rpbaltazar Jun 14, 2020
6b58e19
indentation
rpbaltazar Jun 15, 2020
547ee9e
Add creating tenant message again
GaboFDC Oct 8, 2020
a5d47ad
Add rollback transaction for postgres, and use it when failed to crea…
GaboFDC Oct 8, 2020
8612c51
rollback only on postgresql
rpbaltazar Nov 10, 2020
a219d58
Relaxes requirements on Rails to make it compatible with Rails 6.1
Nov 23, 2020
9a9308e
[#123] check if there is an open transaction and if yes, dont create …
rpbaltazar Dec 15, 2020
d6ba126
copied active record logger to apartment and editing it instead of mo…
rpbaltazar Dec 15, 2020
4e8c13d
inheriting and reducing overwritting
rpbaltazar Dec 16, 2020
cef40ec
added missing information to the change log
rpbaltazar Dec 16, 2020
02044bc
Updated changelog and readme
rpbaltazar Dec 16, 2020
344b039
Version Bump
rpbaltazar Dec 16, 2020
8964442
Merge pull request #126 from rails-on-services/development
rpbaltazar Dec 16, 2020
99ae4d7
[#128] added config spec coverage. added missing require
rpbaltazar Dec 17, 2020
0f1c28c
[#128] added log example to readme and config explanation
rpbaltazar Dec 17, 2020
3031dae
[#128] added note
rpbaltazar Dec 17, 2020
f714c8a
[#128] exclude documentation support folder from gem
rpbaltazar Dec 17, 2020
5a06fff
updated changelog
rpbaltazar Dec 17, 2020
cea09a2
preparing release candidate
rpbaltazar Dec 17, 2020
6adf729
[#130] drafting circle config
rpbaltazar Dec 17, 2020
79d25e9
[#130] updated circle config
rpbaltazar Dec 17, 2020
1cf24c5
[#130] commented some versions
rpbaltazar Dec 17, 2020
8d230a2
[#130] commented workflows
rpbaltazar Dec 17, 2020
e172a31
[#130] added parameters to matrix
rpbaltazar Dec 17, 2020
b1c75c0
[#130] added some parameters
rpbaltazar Dec 17, 2020
907cb7f
[#130] reduced matrix size
rpbaltazar Dec 17, 2020
9233de1
[#130] trying to install specific gemfile
rpbaltazar Dec 17, 2020
0daf511
[#130] installing bundler and trying to install specific gemfile
rpbaltazar Dec 17, 2020
0314ece
[#130] commented ruby default
rpbaltazar Dec 17, 2020
66c26a5
[#130] added rspec
rpbaltazar Dec 17, 2020
8393b12
[#130] trying to have different ruby versions
rpbaltazar Dec 17, 2020
e68c8f0
[#130] using parameters instead of matrix
rpbaltazar Dec 17, 2020
2e190fb
[#130] pointing to different imags
rpbaltazar Dec 17, 2020
6c3d25e
[#130] trying buster
rpbaltazar Dec 17, 2020
309fe46
[#130] copying spec config
rpbaltazar Dec 17, 2020
6c7a683
[#130] trying to run tests
rpbaltazar Dec 17, 2020
c7b7284
[#130] setting gemfile path
rpbaltazar Dec 17, 2020
de4a938
[#130] copying spec dummy
rpbaltazar Dec 17, 2020
f9a8d7d
[#130] trying to start databases
rpbaltazar Dec 17, 2020
57756fa
[#130] using circle image
rpbaltazar Dec 17, 2020
13bd1a1
[#130] fixed docker image
rpbaltazar Dec 17, 2020
14ea863
[#130] checking docker version
rpbaltazar Dec 17, 2020
2cc207b
[#130] setup remote docker
rpbaltazar Dec 17, 2020
7892608
[#130] trying to wait
rpbaltazar Dec 17, 2020
612cc49
[#130] trying cache and wait for mysql only
rpbaltazar Dec 17, 2020
5e2b011
[#130] usign bundle gemfile
rpbaltazar Dec 17, 2020
ad2665b
[#130] trying to interpolate
rpbaltazar Dec 17, 2020
be46fad
[#130] using parameters
rpbaltazar Dec 17, 2020
b48e481
[#130] fixed parameter name
rpbaltazar Dec 17, 2020
ade1d9c
[#130] trying multiple docker images
rpbaltazar Dec 17, 2020
ae50827
[#130] try to create db
rpbaltazar Dec 17, 2020
4cd7514
[#130] using rake available commands
rpbaltazar Dec 17, 2020
f0dc0eb
[#130] trying to create pg db
rpbaltazar Dec 17, 2020
95604ab
[#130] trying to install mysqladmin
rpbaltazar Dec 17, 2020
5095f12
[#130] installing mysql and prep db
rpbaltazar Dec 17, 2020
9b41e4e
[#130] add back jruby and rails 5_2 gemfile
rpbaltazar Dec 17, 2020
6bc13ac
[#130] removed travis.yml
rpbaltazar Dec 17, 2020
98e9752
[#130] trying new jruby version
rpbaltazar Dec 17, 2020
925b5b0
[#130] lower jruby version to match what travis was running
rpbaltazar Dec 17, 2020
beed58f
[#130] try other jruby version
rpbaltazar Dec 17, 2020
93f04ba
[#130] try other jruby version
rpbaltazar Dec 17, 2020
276e5da
[#130] removed jruby for now
rpbaltazar Dec 17, 2020
9263f9f
[#134] added rubocop to workflows
rpbaltazar Dec 17, 2020
a885ffc
[#134] fixed some of the rubocops
rpbaltazar Dec 17, 2020
80afbac
[#134] addressed most of rubocop issues
rpbaltazar Dec 17, 2020
96405a3
[#134] disable rules for constant definition in block
rpbaltazar Dec 17, 2020
7005842
[#134] disable minimum ruby version
rpbaltazar Dec 17, 2020
9a49689
[#127] Fixed method to get the current db name
rpbaltazar Dec 17, 2020
c0e4a6a
[#127] updated changelog
rpbaltazar Dec 17, 2020
4bdec08
Update README.md
nickgal Dec 17, 2020
14159c2
updated rc2 version
rpbaltazar Dec 17, 2020
6fbbaf2
Removed delegator for non existent method
rpbaltazar Dec 17, 2020
2f62620
Merge pull request #131 from rails-on-services/development
rpbaltazar Dec 18, 2020
30f08c4
Version Bump
rpbaltazar Dec 18, 2020
d97d55b
Merge pull request #139 from rails-on-services/development
rpbaltazar Dec 18, 2020
50ebd85
add config writer for db_migrate_tenant_missing_strategy
jonian Dec 18, 2020
8ab8bbd
add migrate_tenant task helper
jonian Dec 18, 2020
1ec5af5
Add Rails 6.1 to build matrix
Jan 7, 2021
6ce4113
version bump
rpbaltazar Jan 21, 2021
ac0fbb2
Merge pull request #146 from rails-on-services/development
rpbaltazar Jan 21, 2021
19770a1
Allow a list of schemas when switching using schemas
Oct 1, 2018
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
Prev Previous commit
Next Next commit
Cleanup travis matrix
  • Loading branch information
rpbaltazar committed Mar 24, 2020
commit b3f2dc121a71855a6b98ef90cb8d076eeb5a5233
12 changes: 0 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ jobs:
allow_failures:
- rvm: ruby-head
- gemfile: gemfiles/rails_master.gemfile
- rvm: jruby-9.1.17.0
gemfile: gemfiles/rails_5_0.gemfile
# Rails 5.2.4.1 is currently broken. Code has been fixed but no release
# for it yet - https://github.com/rails/rails/issues/38137
- rvm: 2.2.9
gemfile: gemfiles/rails_5_2.gemfile
exclude:
Expand All @@ -63,13 +59,5 @@ jobs:
gemfile: gemfiles/rails_6_0.gemfile
- rvm: 2.4.3
gemfile: gemfiles/rails_6_0.gemfile
- rvm: jruby-9.1.17.0
gemfile: gemfiles/rails_5_1.gemfile
- rvm: jruby-9.1.17.0
gemfile: gemfiles/rails_5_2.gemfile
- rvm: jruby-9.1.17.0
gemfile: gemfiles/rails_6_0.gemfile
- rvm: jruby-9.1.17.0
gemfile: gemfiles/rails_master.gemfile
fast_finish: true
cache: bundler