Skip to content

Fixed all imports#644

Merged
djeck1432 merged 7 commits intoCarmineOptions:masterfrom
DeborahOlaboye:fix-import
Jul 31, 2025
Merged

Fixed all imports#644
djeck1432 merged 7 commits intoCarmineOptions:masterfrom
DeborahOlaboye:fix-import

Conversation

@DeborahOlaboye
Copy link
Contributor

@DeborahOlaboye DeborahOlaboye commented Jul 26, 2025

This PR fixes all import statements across the project:

  • Sorted imports according to project style
  • Converted relative imports to absolute where necessary

Closes #638

@DeborahOlaboye DeborahOlaboye marked this pull request as draft July 26, 2025 17:32
Copy link
Contributor

@Valera56pub Valera56pub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to run:
docker-compose -f devops/dev/docker-compose.dashboard-app.yaml up --build
AND
docker-compose -f devops/dev/docker-compose.data-handler.yaml up --build
Make sure both commands build and run without errors!

from ..helpers import add_leading_zeros, get_addresses, get_symbol
from ..custom_types.base import TokenParameters
from apps.shared.helpers import add_leading_zeros, get_addresses, get_symbol
from apps.shared.custom_types.base import TokenParameters
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

must be:

from shared.helpers import add_leading_zeros, get_addresses, get_symbol
from shared.custom_types.base import TokenParameters

from .alpha import NostraAlphaState
from .mainnet import NostraMainnetState
from nostra.alpha import NostraAlphaState
from nostra.mainnet import NostraMainnetState
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

must be:

from shared.state.nostra.alpha import NostraAlphaState
from shared.state.nostra.mainnet import NostraMainnetState

import google.cloud.storage
import pandas
from .order_books.constants import TOKEN_MAPPING
from handlers.order_books.constants import TOKEN_MAPPING
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

must be:

from data_handler.handlers.order_books.constants import TOKEN_MAPPING

@DeborahOlaboye DeborahOlaboye marked this pull request as ready for review July 26, 2025 19:50
Copy link
Contributor

@Valera56pub Valera56pub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't you run this to check whether your code works correctly?

docker-compose -f devops/dev/docker-compose.dashboard-app.yaml up --build
AND
docker-compose -f devops/dev/docker-compose.data-handler.yaml up --build

@DeborahOlaboye
Copy link
Contributor Author

Why don't you run this to check whether your code works correctly?

docker-compose -f devops/dev/docker-compose.dashboard-app.yaml up --build AND docker-compose -f devops/dev/docker-compose.data-handler.yaml up --build

Thank you for the feedback! I’ve run the following commands to verify that everything works correctly.

docker-compose -f devops/dev/docker-compose.dashboard-app.yaml up --build
docker-compose -f devops/dev/docker-compose.data-handler.yaml up --build

I really appreciate your patience throughout this process. I apologize for the back-and-forth, it wasn’t my intention to cause any extra work. Hopefully, this will be the final review. Thanks again!

@Valera56pub
Copy link
Contributor

I’ve run the following commands to verify that everything works correctly.

Then you have seen errors like this:
image

@DeborahOlaboye DeborahOlaboye marked this pull request as draft July 27, 2025 17:48
@DeborahOlaboye
Copy link
Contributor Author

I’ve run the following commands to verify that everything works correctly.

Then you have seen errors like this: image

I have made further changes; however, it seems that the issue is dependent on issue #636 . This needs to be resolved to ensure the commands run correctly.

Attached below is the error I’m currently encountering.

Thank you!

image

@DeborahOlaboye DeborahOlaboye marked this pull request as ready for review July 28, 2025 18:35
@@ -1,5 +1,5 @@

from . import bot
from telegram import bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it must be:
dashboard_app.[full_path].telegram import bot



from .constants import ChartsHeaders, CommonValues
from .main_chart_figure import (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dashboard_app.[full_path].charts

get_total_amount_by_field,
)
from .utils import (
from charts.utils import (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dashboard_app.[full_path].utils

from shared.state import State

from .constants import CommonValues
from charts.constants import CommonValues
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dashboard_app.[full_path].constants

)

from .constants import SUPPLY_STATS_TOKEN_SYMBOLS_MAPPING
from charts.constants import SUPPLY_STATS_TOKEN_SYMBOLS_MAPPING
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dashboard_app.[full_path].constants

get_supply_function_call_parameters,
)
from .tools import get_underlying_address
from helpers.tools import get_underlying_address
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dashboard_app.[full_path].tools

@Valera56pub
Copy link
Contributor

I have made further changes; however, it seems that the issue is dependent on issue #636 . This needs to be resolved to ensure the commands run correctly.

That fork will be merged today, and you will be able to review this issue

@DeborahOlaboye
Copy link
Contributor Author

I have made further changes; however, it seems that the issue is dependent on issue #636 . This needs to be resolved to ensure the commands run correctly.

That fork will be merged today, and you will be able to review this issue

Okay, it has now been reviewed. Thank you.

@Valera56pub
Copy link
Contributor

Also fix all issues above

@DeborahOlaboye
Copy link
Contributor Author

Also fix all issues above

I have done the checks and have no issues running the docker commands, kindly review.

@Valera56pub
Copy link
Contributor

I have done the checks and have no issues running the docker commands, kindly review.

resolve this :
#644 (comment)
and others

@DeborahOlaboye
Copy link
Contributor Author

I have done the checks and have no issues running the docker commands, kindly review.

resolve this : #644 (comment) and others

Okay, Done. Thank you.

Copy link
Contributor

@Valera56pub Valera56pub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done. LGTM

@djeck1432 djeck1432 merged commit f8cf85c into CarmineOptions:master Jul 31, 2025
2 checks passed
@djeck1432 djeck1432 self-requested a review July 31, 2025 08:32
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.

Fix all imports

3 participants