-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add taxonomy app and topic tree node model * Update sync command * edit_handler added in and taxonomy tab tested in information page * Topic model and links * Fix the exclusive topic relationships * Fix topic choosers * Add generic taxonomy to all required pages, fix some bits * Add topic deduplication * Code tidy up and doc strings added * Add sync command tests * Testing taxonomy models * Add TopicFactory and update other factories which now depend on it * Remove taxonomy from release calendar page, improve factory * Move sync topics command to taxonomy app * Add start functional tests * Refactor locations, use dummy root level topic * Fix migration, use multi chooser * Update functional tests * get_queryset added to TopicChooserViewSet, taxonomy models and viewsets tests added. * Add make target for loading topics fixture, small refactors and moves * Combine migrations * Pushing latest tests for taxonomy * Debugging tests * Move root topic creation to a migration, fix some bugs * Address review comments * Fix title with depth mistake and add more type hinting * Fix title with depth mistake * Make mypy happy, fix some issues * Fix linting/mypy conflict * Fix mistake, remove unecessary taxonomy panels fields * Address review comments * Address review comments, remove unecessary function * Tests for forms, mixins, models and viewsets: Cleaned up, code formatted and complete. * Fix move function issue * Remove complete FIXME * Update migrations * Remove accidental unrelated migration * Re-add article model migration * Ignoring migration: 0002_articleseriespage_listing_image_and_more * Add parents topics column to chooser * Revert experimental chooser enhancements * Bring typing hinting in line with our standards * save_new_topic usage updated to make work as an instance method of Topic instead of getting it to work as a classmethod (save_new_topic is not a classmethod) * sync_topics, _update_topic function refactored * calling management commands using call_command and self.assertEqual being used replacing assert. * All sync_topics.Command().handle() replaced with call_command("sync_topics") --------- Co-authored-by: sanjeevz3009 <[email protected]>
- Loading branch information
1 parent
b7740fc
commit d0e1017
Showing
45 changed files
with
3,930 additions
and
128 deletions.
There are no files selected for viewing
This file contains 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 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
51 changes: 51 additions & 0 deletions
51
cms/articles/migrations/0002_articleseriespage_listing_image_and_more.py
This file contains 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,51 @@ | ||
# Generated by Django 5.1.6 on 2025-02-20 09:34 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("articles", "0001_initial"), | ||
("images", "0004_alter_customimage__privacy"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="articleseriespage", | ||
name="listing_image", | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="+", | ||
to="images.customimage", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="articleseriespage", | ||
name="listing_summary", | ||
field=models.CharField(blank=True, max_length=255), | ||
), | ||
migrations.AddField( | ||
model_name="articleseriespage", | ||
name="listing_title", | ||
field=models.CharField(blank=True, max_length=255), | ||
), | ||
migrations.AddField( | ||
model_name="articleseriespage", | ||
name="social_image", | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="+", | ||
to="images.customimage", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="articleseriespage", | ||
name="social_text", | ||
field=models.CharField(blank=True, max_length=255), | ||
), | ||
] |
This file contains 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
Empty file.
This file contains 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 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 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 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 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 |
---|---|---|
|
@@ -70,3 +70,5 @@ | |
|
||
# Silence Slack notifications by default | ||
SLACK_NOTIFICATIONS_WEBHOOK_URL = None | ||
|
||
ONS_API_BASE_URL = "dummy_url" |
This file contains 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
Empty file.
This file contains 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,6 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class TaxonomyConfig(AppConfig): | ||
default_auto_field = "django.db.models.BigAutoField" | ||
name = "cms.taxonomy" |
Oops, something went wrong.