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 Experiment and Phase objects for orphan Blocks #1240

Closed
wants to merge 3 commits into from

Conversation

BeritJanssen
Copy link
Collaborator

Cf. #1211.

@BeritJanssen BeritJanssen self-assigned this Aug 27, 2024
drikusroor added a commit that referenced this pull request Sep 4, 2024
drikusroor added a commit that referenced this pull request Sep 4, 2024
…ck` (#1227)

* feat: Add BlockTranslatedContent model and relate it to Block with a ManyToMany relationship

* refactor: Migrate block content and associated models

* refactor: Add `translated_content` as `ManyToMany` field of `Block` instead of on `BlockTranslatedContent`

* feat: Warn user about missing translated contents

* refactor: Remove hashtag, url, consent & language from block

* refactor: Move warnings to remarks column

* fix: Fix many tests after removing consent/url/hashtags from block model

* doc: Update consent's doc string

* fix: Fix minor test

* fix: Fix remainder of tests

* fix: Validating the model before saving the model and its relations results into errors as the validator looks for translated content using the FKs

* refactor: Handle missing language in content

* fix: Re-add Hooked ID

* refactor(`BlockTranslatedContent`) Refactor `Block`-`BlockTranslatedContent` relationship to `ForeignKey`

- Update Block model to use ForeignKey for translated_contents
- Modify migrations to reflect new relationship
- Adjust admin interface to handle inline editing of translated contents
- Update related queries and methods to use new relationship structure

* refactor: Use tabular inline for block translated content

* fix: Fix border radius top left in markdown input

* feat: Add all necessary fields for experiment translated content to its form

* chore: Remove unnecessary print statement

* fix: Add `BlockTranslatedContentInline` inline to `BlockAdmin`

* fix: Create temporary fix for tabular inline headings appearing out of its h2 element

See also:
- theatlantic/django-nested-admin#261
- theatlantic/django-nested-admin#259

* chore: Incorporate latest version of `django-nested-admin` that includes fix for the tabular inline form's heading

* refactor: Rename test to be more descriptive

* refactor: Incorporate the migration of #1240
@drikusroor
Copy link
Contributor

Closed as this is incorporated into #1227

@drikusroor drikusroor closed this Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants