Skip to content

Commit

Permalink
Merge branch 'hg/SDESK-7441-base-async-services-resources' into SDESK…
Browse files Browse the repository at this point in the history
…-7443
  • Loading branch information
BrianMwangi21 committed Dec 2, 2024
2 parents 7c91bc4 + 84c6f2c commit 36bd997
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions server/planning/types/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ class CoverageInternalPlanning:
"include_in_parent": True,
"dynamic": False,
"properties": {
"qcode": fields.Keyword,
"name": fields.Keyword,
"scheme": fields.Keyword,
"qcode": {"type": "keyword"},
"name": {"type": "keyword"},
"scheme": {"type": "keyword"},
},
}
),
Expand Down
4 changes: 2 additions & 2 deletions server/planning/types/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from datetime import datetime
from typing import Annotated, Any

from content_api.items.model import CVItem, ContentAPIItem, Place
from content_api.items.model import CVItem, Place

from superdesk.utc import utcnow
from superdesk.core.resources import fields, dataclass
Expand Down Expand Up @@ -152,7 +152,7 @@ class EventResourceModel(BasePlanningModel, LockFieldsMixin):

# Event Details
# NewsML-G2 Event properties See IPTC-G2-Implementation_Guide 15.2
name: str
name: str | None = None
definition_short: str | None = None
definition_long: str | None = None
internal_note: str | None = None
Expand Down
2 changes: 1 addition & 1 deletion server/planning/types/planning.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class PlanningResourceModel(BasePlanningModel, LockFieldsMixin):
{
"type": "nested",
"properties": {
"coverage_id": fields.Keyword,
"coverage_id": {"type": "keyword"},
"planning": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 36bd997

Please sign in to comment.