Skip to content
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

fix(cockpit): compilation issues #496 #502

Merged

Conversation

petermetz
Copy link
Contributor

The full build with frontend components included are now working
once again.

  1. The cockpit components no longer depend on the api-client package
    shipping the standard typescript-axios client types such as DefaultApi,
    Configuration and the likes. This is because we hollowed out the
    client-api package to only contain the extensions to these generated
    types mentioned above (provided via typescript-axios OpenAPI generator)

This is part of a larger ongoing effort where we decoupled the api-client
and the cmd-api-server packages where earlier there was some tangling
between the two in the form of the cmd-api-server exporting it's
openapi spec onto the api-client package which in hindsight didn't
make much sense to be honest. Mistakes were made, but now are being
fixed.

  1. A related, but not strictly necessary, cleanup type of change is that
    we also deleted the remnants of the generated code from the api-client
    package, e.g. the whole ./generated/openapi/typescrit-axios/ folder is
    now gone properly (it didn't have any actual Typescript code at this
    point anyway due to the ongoing changes on other works streams
    that were pointed out above as well.)

Fixes #496

Signed-off-by: Peter Somogyvari peter.somogyvari@accenture.com

The full build with frontend components included are now working
once again.

1. The cockpit components no longer depend on the api-client package
shipping the standard typescript-axios client types such as DefaultApi,
Configuration and the likes. This is because we hollowed out the
client-api package to only contain the extensions to these generated
types mentioned above (provided via typescript-axios OpenAPI generator)

This is part of a larger ongoing effort where we decoupled the api-client
and the cmd-api-server packages where earlier there was some tangling
between the two in the form of the cmd-api-server exporting it's
openapi spec onto the api-client package which in hindsight didn't
make much sense to be honest. Mistakes were made, but now are being
fixed.

2. A related, but not strictly necessary, cleanup type of change is that
we also deleted the remnants of the generated code from the api-client
package, e.g. the whole ./generated/openapi/typescrit-axios/ folder is
now gone properly (it didn't have any actual Typescript code at this
point anyway due to the ongoing changes on other works streams
that were pointed out above as well.)

Fixes hyperledger-cacti#496

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
@petermetz petermetz added the bug Something isn't working label Jan 15, 2021
@petermetz petermetz added this to the v0.4.0 milestone Jan 15, 2021
@petermetz petermetz enabled auto-merge (rebase) January 15, 2021 22:05
Copy link
Contributor

@jonathan-m-hamilton jonathan-m-hamilton left a comment

Choose a reason for hiding this comment

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

LGTM

@petermetz petermetz merged commit fad9fff into hyperledger-cacti:main Jan 19, 2021
@petermetz petermetz deleted the fix/cockpit/compilation-issues-496 branch January 19, 2021 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix(cockpit): compilation issues
3 participants