-
Notifications
You must be signed in to change notification settings - Fork 10
Fix mixed import patterns of __init__.py #113
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
Merged
ChanukaUOJ
merged 17 commits into
LDFLK:main
from
rusiru-erandaka:fix-mixed-import-patterns
Jun 28, 2026
Merged
Changes from 10 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
7499852
refactor(services): expose public symbols via __init__.py and update …
rusiru-erandaka a28e2c2
refactor(core): expose public symbols via __init__.py
rusiru-erandaka 0d9884b
refactor(exception): expose public symbols via __init__.py
rusiru-erandaka 87f7643
refactor(middleware): expose public symbols via __init__.py and updat…
rusiru-erandaka 776e8e3
refactor(models): expose public symbols via __init__.py
rusiru-erandaka 08357db
refactor(utils): expose public symbols via __init__.py and update htt…
rusiru-erandaka ae0fcd0
refactor(routers): expose public symbols via __init__.py and update r…
rusiru-erandaka c470e1b
refactor(main): update imports to use package-level interface
rusiru-erandaka faaeeb5
test: update test imports to use package-level interface
rusiru-erandaka 23c766f
chore: update .env.example with new service configuration
rusiru-erandaka 591bf41
Update package import alphabetically src/services/__init__.py
rusiru-erandaka c734f1d
Update according to the alphabetical oder. src/services/__init__.py
rusiru-erandaka ece2c1e
Update importers according to alphabetical oder. src/models/__init__.py
rusiru-erandaka c869033
Return department ids for links of cabinet flow response
zaeema-n db52c27
Add endpoint to resolve entity IDs to display names
zaeema-n f8ad791
Refactor organisation_service to simplify department link aggregation…
zaeema-n 9a38e5f
added relative imports instead of absolute imports in enums
rusiru-erandaka 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| """Top-level package for the GI Service application.""" | ||
|
|
||
| # Intentionally avoid re-exporting subpackages here to keep imports explicit. | ||
| __all__: list[str] = [] |
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,6 @@ | ||
| from .config import Settings, settings | ||
|
|
||
| __all__ = [ | ||
| "Settings", | ||
| "settings", | ||
| ] |
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,15 @@ | ||
| from .exceptions import ( | ||
| BadRequestError, | ||
| GatewayTimeoutError, | ||
| InternalServerError, | ||
| NotFoundError, | ||
| ServiceUnavailableError, | ||
| ) | ||
|
|
||
| __all__ = [ | ||
| "BadRequestError", | ||
| "GatewayTimeoutError", | ||
| "InternalServerError", | ||
| "NotFoundError", | ||
| "ServiceUnavailableError", | ||
| ] |
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,5 @@ | ||
| from .throttling import ThrottlingMiddleware | ||
|
|
||
| __all__ = [ | ||
| "ThrottlingMiddleware", | ||
| ] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,32 @@ | ||
| from .data_requestbody import DataCatalogRequest, DatasetYearsRequest | ||
| from .organisation_schemas import ( | ||
| AttributeFilterRecord, | ||
| AttributeFilterRecords, | ||
| Category, | ||
| Dataset, | ||
| Date, | ||
| Entity, | ||
| Kind, | ||
| Label, | ||
| Relation, | ||
| ) | ||
| from .person_schemas import PersonSource, PersonResponse | ||
| from .search_schemas import SearchResponse, SearchResult | ||
|
|
||
| __all__ = [ | ||
| "AttributeFilterRecord", | ||
| "AttributeFilterRecords", | ||
| "Category", | ||
| "DataCatalogRequest", | ||
| "Dataset", | ||
| "DatasetYearsRequest", | ||
| "Date", | ||
| "Entity", | ||
| "Kind", | ||
| "Label", | ||
| "PersonSource", | ||
| "PersonResponse" | ||
| "PersonResponse", | ||
|
rusiru-erandaka marked this conversation as resolved.
|
||
| "Relation", | ||
| "SearchResponse", | ||
| "SearchResult", | ||
| ] | ||
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
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 |
|---|---|---|
| @@ -1,11 +1,15 @@ | ||
| from .data_service import DataService | ||
| from .organisation_service import OrganisationService | ||
| from .opengin_service import OpenGINService | ||
| from .person_service import PersonService | ||
| from .document_service import DocumentService | ||
| from .search_service import SearchService | ||
|
rusiru-erandaka marked this conversation as resolved.
|
||
|
|
||
| __all__ = [ | ||
| "DataService", | ||
| "DocumentService", | ||
| "OrganisationService", | ||
| "OpenGINService", | ||
|
rusiru-erandaka marked this conversation as resolved.
Outdated
|
||
| "PersonService", | ||
| "DocumentService" | ||
| ] | ||
| "SearchService", | ||
| ] | ||
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
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
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,8 @@ | ||
| from .http_client import HTTPClient, http_client | ||
| from .util_functions import Util | ||
|
|
||
| __all__ = [ | ||
| "HTTPClient", | ||
| "http_client", | ||
| "Util", | ||
| ] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| """Test package for GI Service. | ||
|
|
||
| Fixtures and test helpers stay module-local to avoid creating a public API. | ||
| """ | ||
|
|
||
| __all__: list[str] = [] |
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
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
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.