-
Notifications
You must be signed in to change notification settings - Fork 5
Rationalisation des organisations (1/2) #3714
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
arnaudlevy
wants to merge
17
commits into
main
Choose a base branch
from
merge-organizations-step1
base: main
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
bcb21c6
first step
arnaudlevy 3e45850
Merge branch 'main' into merge-organizations-step1
arnaudlevy 4fe5a92
clean
arnaudlevy d1d1d6b
fix tests
arnaudlevy e0781de
id
arnaudlevy 2c70a08
oops
arnaudlevy cd43717
Merge branch 'main' into merge-organizations-step1
arnaudlevy 9345c0c
merge
arnaudlevy 2b7f74b
fix
arnaudlevy dad9630
schema
arnaudlevy afdda6c
Merge branch 'main' into merge-organizations-step1
arnaudlevy 726ebad
Merge branch 'main' into merge-organizations-step1
arnaudlevy b34d012
Merge branch 'main' into merge-organizations-step1
arnaudlevy aa69bc5
update
arnaudlevy e80d422
Merge branch 'merge-organizations-step1' of github.com:osunyorg/admin…
arnaudlevy cadf919
gem
arnaudlevy 16666c2
Merge branch 'main' into merge-organizations-step1
arnaudlevy 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
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
72 changes: 72 additions & 0 deletions
72
app/models/university/organization/localization/laboratory.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| # == Schema Information | ||
| # | ||
| # Table name: university_organization_localizations | ||
| # | ||
| # id :uuid not null, primary key | ||
| # address_additional :string | ||
| # address_name :string | ||
| # deleted_at :datetime | ||
| # featured_image_alt :string | ||
| # featured_image_credit :text | ||
| # linkedin :string | ||
| # long_name :string | ||
| # mastodon :string | ||
| # meta_description :text | ||
| # migration_identifier :string | ||
| # name :string | ||
| # published :boolean default(TRUE) | ||
| # published_at :datetime | ||
| # slug :string | ||
| # summary :text | ||
| # text :text | ||
| # twitter :string | ||
| # url :string | ||
| # created_at :datetime not null | ||
| # updated_at :datetime not null | ||
| # about_id :uuid uniquely indexed => [language_id], indexed | ||
| # language_id :uuid uniquely indexed => [about_id], indexed | ||
| # university_id :uuid indexed | ||
| # | ||
| # Indexes | ||
| # | ||
| # idx_on_about_id_language_id_eb921fd47b (about_id,language_id) UNIQUE | ||
| # index_university_organization_localizations_on_about_id (about_id) | ||
| # index_university_organization_localizations_on_language_id (language_id) | ||
| # index_university_organization_localizations_on_university_id (university_id) | ||
| # | ||
| # Foreign Keys | ||
| # | ||
| # fk_rails_19fb4f0718 (about_id => university_organizations.id) | ||
| # fk_rails_4b46ee9073 (language_id => languages.id) | ||
| # fk_rails_ba221edb00 (university_id => universities.id) | ||
| # | ||
| class University::Organization::Localization::Laboratory < University::Organization::Localization | ||
| def self.polymorphic_name | ||
| 'University::Organization::Localization::Laboratory' | ||
| end | ||
|
|
||
| def git_path_relative | ||
| "laboratories/#{slug}/_index.html" | ||
| end | ||
|
|
||
| def template_static | ||
| "admin/university/organizations/laboratories/static" | ||
| end | ||
|
|
||
| def dependencies | ||
| [ | ||
| organization_l10n, | ||
| organization | ||
| ] | ||
| end | ||
|
|
||
| def references | ||
| # TODO | ||
| end | ||
|
|
||
| def static_localization_key | ||
| # so we don't mess with the University::Organization::Localization static_localization_key | ||
| "#{about.class.polymorphic_name.parameterize}-laboratory-#{self.about_id}" | ||
| end | ||
|
|
||
| end | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.