Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Edbo849 committed Aug 30, 2024
1 parent aa8a9b2 commit 3e7f0c9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
17 changes: 12 additions & 5 deletions esgf-consumer/esgf_consumer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,21 @@
from aiokafka.errors import KafkaError
from esgf_consumer.collection import ensure_collection
from esgf_consumer.consumers import get_consumer
from esgf_consumer.exceptions import (ESGFConsumerNotImplementedPayloadError,
ESGFConsumerUnknownPayloadError)
from esgf_consumer.exceptions import (
ESGFConsumerNotImplementedPayloadError,
ESGFConsumerUnknownPayloadError,
)
from esgf_consumer.items import create_item, hard_delete_item, update_item
from esgf_consumer.producers import get_producer
from esgf_playground_utils.config.kafka import Settings
from esgf_playground_utils.models.kafka import (CreatePayload, Error,
ErrorType, KafkaEvent,
RevokePayload, UpdatePayload)
from esgf_playground_utils.models.kafka import (
CreatePayload,
Error,
ErrorType,
KafkaEvent,
RevokePayload,
UpdatePayload,
)
from pydantic import ValidationError

logging.getLogger().setLevel(logging.DEBUG)
Expand Down
7 changes: 5 additions & 2 deletions esgf-generator/esgf_generator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@

import httpx
from esgf_generator.data import CHOICES
from esgf_generator.static_generators import (generate_datetime,
generate_geometry, instance_id)
from esgf_generator.static_generators import (
generate_datetime,
generate_geometry,
instance_id,
)
from esgf_playground_utils.models.item import ESGFItem, ESGFItemProperties
from polyfactory import PostGenerated
from polyfactory.factories.pydantic_factory import ModelFactory
Expand Down
14 changes: 10 additions & 4 deletions esgf-transaction-api/esgf_transaction_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@

import aiokafka
from esgf_playground_utils.config.kafka import Settings
from esgf_playground_utils.models.kafka import (Auth, CreatePayload, Data,
KafkaEvent, Metadata,
Publisher, RevokePayload,
UpdatePayload)
from esgf_playground_utils.models.kafka import (
Auth,
CreatePayload,
Data,
KafkaEvent,
Metadata,
Publisher,
RevokePayload,
UpdatePayload,
)
from fastapi import FastAPI, HTTPException, Request
from stac_pydantic.item import Item
from stac_pydantic.item_collection import ItemCollection
Expand Down

0 comments on commit 3e7f0c9

Please sign in to comment.