serverless / dashboard

MIT License
24 stars 10 forks source link

Draft: [Python base SDK] Absolute imports should be made internal #812

Closed selcukcihan closed 1 year ago

selcukcihan commented 1 year ago

Description

Testing done

Next

selcukcihan commented 1 year ago

@medikoo this is also ready for review, but we should first release https://github.com/serverless/console/pull/813 if we want to get the other fix out first. I've marked the PR as draft to leave the decision to you.

If you decide to release the two fixes for the two bugs at once, then this should be merged first and then we should update https://github.com/serverless/console/pull/813 to make it a breaking change and move on.

medikoo commented 1 year ago

@selcukcihan I understand that this is ready to merge (?). Can you also explain what's exactly breaking here?

selcukcihan commented 1 year ago

Yes, ready to merge 👍 Breaking change is the way we isolate imports, when the layer sdk is still importing old way, this will cause some modules to be imported twice. Also there is a dropped parameter so the code won't compile either in the layer sdk if it uses this new version of base sdk.