forked from decko-commons/decko
-
Notifications
You must be signed in to change notification settings - Fork 1
Core2conent Start of Moving stuff out of card/mod/core #6
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
Open
GerryG
wants to merge
17
commits into
docker_decko
Choose a base branch
from
core2content
base: docker_decko
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
71393d1
renames some core format and chunks to new content mod
GerryG db124ae
fix a wagn-decko test change, and URI.escape dep warning
GerryG 15549b5
Moving more things out of core to content
GerryG 315d5c4
Merge branch 'master' into core2content
GerryG 5156778
Adding ARDEP comments where the dependencies are
GerryG bf04115
Get seeds change from docker_decko changes
GerryG f6540e6
added the file for review
GerryG f005b0c
...
GerryG 4ba66be
Merge branch 'mod2gems' into core2content
GerryG e698b3a
...
GerryG 7b7ea91
Merge remote-tracking branch 'origin/mod2gems' into core2content
GerryG 60660b7
move some to fetch
GerryG 7a095ce
Move a bunch of stuff to some new mod dirs and from lib, etc
GerryG 0e96171
It wouldn't load tasks when I moved all to a mod (rails)
GerryG 40f3b1b
Merge branch 'master' into core2content
GerryG 2f1643d
Merge branch 'master' into core2content
GerryG 0f479cd
Merge branch 'master' into core2content
GerryG File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,140 @@ | ||
| # decko stuff, leave for now | ||
| #./decko/spec/cypress/app_commands/factory_bot.rb: # ARDEP: exception RecordInvalid | ||
| #./decko/spec/cypress/app_commands/log_fail.rb:# ARDEP defined? protected | ||
| #./decko/lib/decko/engine.rb: # ARDEP should be safe, only on-load, maybe also defined?(ActiveRecord) protection needed? | ||
| #./decko/lib/decko/generators/decko/templates/config/puma.rb: # ARDEP: maybe register storage managers with establish_connection action? | ||
| #./decko/lib/decko/tasks/db.rake: # ARDEP: this is all Rails -> AR standard usages, need alternatives in loading data to storage models | ||
| #./decko/lib/decko/tasks/decko/seed.rake: # ARDEP: this is all Rails -> AR standard usages, need alternatives in loading data to storage models | ||
| #./decko/lib/decko/tasks/decko.rake: # ARDEP: this is all Rails -> AR standard usages, need alternatives in loading data to storage models | ||
| #./decko/rails/controllers/card_controller.rb: # ARDEP: exceptions RecordInvalid | ||
|
|
||
| # | ||
| # I'm setting up to run a series of git mv's after the subdirs are ready in | ||
| # my working directory. The original paths with a comment about the nature of | ||
| # of the ActiveRecord dependency, and then the pattern is: | ||
| #git mv <targ directory> <source directory> <list of files to move> | ||
| # I'll edit the list into git mv commands and run them on this branch. | ||
|
|
||
| #./card/config/initializers/02_patches/active_record.rb: # ARDEP: configuration (in filename) | ||
| #./card/config/initializers/patches.rb:# ARDEP: need to isolate this to named and optionally included place | ||
| git mv card/config/initializers/patches.rb card/mod/active_record/config/initializers | ||
| git mv card/config/initializers/02_patches/active_record.rb card/mod/active_record/config/initializers/02_patches | ||
|
|
||
|
|
||
| #./card/spec/lib/card/subcards_spec.rb: # ARDEP: exception RecordInvalid | ||
| #./card/spec/lib/card/set/required_field_spec.rb: # ARDEP: exception RecordInvalid (apparently can't depend on it defined?) | ||
| git mv card/spec/lib/card/subcards_spec.rb card/mod/active_record/spec/lib/card | ||
| git mv card/spec/lib/card/set/required_field_spec.rb card/mod/active_record/set | ||
|
|
||
| # card/mod/core/set/all/collection.rb: # ARDEP: ::Relation | ||
| # card/mod/core/set/all/states.rb: # ARDEP: new_record? in storage API | ||
| # card/mod/core/set/all/abort.rb: # ARDEP: need a storage API to do this | ||
| git mv card/mod/core/set/all/collection.rb card/mod/active_record/set/all | ||
| git mv card/mod/core/set/all/states.rb card/mod/active_record/set/all | ||
| git mv card/mod/core/set/all/abort.rb card/mod/active_record/set/all | ||
|
|
||
| git mv card/mod/core/spec/set/all/subcards_spec.rb card/mod/active_record/spec/set/all | ||
| git mv card/mod/pointer/spec/set/type/mirror_list_spec.rb card/mod/active_record/spec/set/type | ||
|
|
||
| # leave in history | ||
| #./card/mod/history/set/all/history/act_listing.rb: # ARDEP: Relation | ||
| #./card/mod/history/lib/card/act.rb: # ARDEP: Relation | ||
|
|
||
| # card/mod/carrierwave/spec/set/abstract/attachment/cloud_spec.rb: # ARDEP: exceptions RecordInvalid | ||
| # card/mod/carrierwave/spec/set/type/file_spec.rb: # ARDEP: exceptions RecordInvalid | ||
| #git mv card/mod/carrierwave/spec/set/abstract/cloud_spec.rb card/mod/active_record/spec/set/abstract | ||
| #git mv card/mod/carrierwave/spec/set/type/mirror_list_spec.rb card/mod/active_record/spec/set/type | ||
|
|
||
| #./card/lib/generators/card.rb: # ARDEP: migration generators | ||
| #./card/lib/application_record.rb:# ARDEP: refactor this to a factory for configured storage modules that can store and use ActiveModel | ||
|
|
||
| #./card/lib/cardio.rb: # ARDEP: connection object | ||
| #./card/lib/cardio/schema.rb: # ARDEP: migrations | ||
|
|
||
| #./card/lib/card/model/save_helper.rb: # ARDEP: note how ! methods here should be the complete interface from Card::Model < ActiveModel when it needs AR methods and features. I think the solution is to have a 'naked' card that is just a Model, and a Card::Storage class that works like formatters to do view stuff. You need to card.to_storage to get the mutation functions used here | ||
| git mv card/lib/card/model/save_helper.rb card/mod/active_record/lib/card/model | ||
|
|
||
| #./card/lib/card/cache/persistent.rb: # ARDEP: should be ActiveModel and only create AR object to manage storage process | ||
| git mv card/lib/card/cache/persistent.rb card/mod/fetch/lib/card/cache | ||
|
|
||
| #./card/lib/card/migration.rb: # ARDEP: migration | ||
| git mv card/lib/card/migration.rb card/mod/active_record/lib/card | ||
| #./card/lib/card/codename.rb: # ARDEP: connection | ||
| git mv card/lib/card/codename.rb card/mod/fetch/lib/card | ||
|
|
||
| #./card/lib/card/director/phases.rb: # ARDEP: exception RecordInvalid | ||
| #./card/lib/card/director/store.rb: # ARDEP: comments reflect Card::Storage class | ||
| git mv card/lib/card/director/phases.rb card/mod/storage/lib/card/director | ||
| git mv card/lib/card/director/store.rb card/mod/storage/lib/card/director | ||
|
|
||
| #./card/lib/card/tasks/card/migrate.rake:#ARDEP: migrations | ||
| git mv card/lib/card/tasks/card/migrate.rake card/mod/rails/lib/card/tasks/card | ||
|
|
||
| #./card/lib/card/query/sql_statement.rb: # ARDEP: connection | ||
| #./card/lib/card/query/clause.rb: # ARDEP: connection | ||
| #./card/lib/card/query/card_query/run.rb: # ARDEP: connection | ||
| git mv card/lib/card/query card/mod/active_record/lib/card | ||
|
|
||
| # ./card/lib/card/error.rb: # ARDEP: exceptions RecordNotFound, RecordInvalid | ||
| # ./card/lib/card/error.rb: # ARDEP ActionController: exceptions BadRequest, MissingFile | ||
| git mv card/lib/card/error.rb card/mod/active_record/lib/card | ||
|
|
||
| After the moving, we have these stats: | ||
| content | ||
| 4807 total | ||
| fetch | ||
| 957 total | ||
| storage | ||
| 129 total | ||
| rails | ||
| 111 rails/lib/card/tasks/card/migrate.rake | ||
| active_record | ||
| 3297 total | ||
| utility | ||
| 99 total | ||
| admin | ||
| 363 total | ||
| core | ||
| 4931 total | ||
| virtual | ||
| 167 total | ||
| history | ||
| 1878 total | ||
| basic_formats | ||
| 1086 total | ||
| item | ||
| 199 total | ||
| pointer | ||
| 2164 total | ||
| solid_cache | ||
| 278 total | ||
| basic_types | ||
| 137 total | ||
| machines | ||
| 50018 total | ||
| settings | ||
| 947 total | ||
| 309 total | ||
| follow | ||
| 2280 total | ||
| developer | ||
| 202 total | ||
| carrierwave | ||
| 2324 total | ||
| media | ||
| 188 total | ||
| search | ||
| 1232 total | ||
| standard | ||
| 5702 total | ||
| rules | ||
| 1204 total | ||
| account | ||
| 1754 total | ||
| navbar | ||
| 432 total | ||
| bootstrap | ||
| 874110 total | ||
| google_analytics | ||
| 39 google_analytics/set/all/google_analytics.rb | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| # ARDEP: refactor this to a factory for configured storage modules that can store and use ActiveModel | ||
| class ApplicationRecord < ActiveRecord::Base | ||
| self.abstract_class = true | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| mod 'content' | ||
| mod 'fetch' | ||
| mod 'storage' | ||
| mod 'active_record' | ||
| mod 'utility' | ||
| mod 'admin' | ||
| mod 'core' | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
card/lib/card/migration.rb → card/mod/active_record/lib/card/migration.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments here ...