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

Updated interfaces to import other interfaces locally #64

Merged
merged 1 commit into from
May 14, 2021
Merged

Conversation

severinbeauvais
Copy link
Collaborator

Issue #: /bcgov/entity#6554

Description of changes:

  • updated interfaces to import other interfaces locally
  • there are no Storybook changes for this code change

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the business-filings-ui license (Apache 2.0).

@@ -1,5 +1,4 @@
import { IncorporationAddressIf, ShareClassIF,
NameTranslationIF } from '@/interfaces'
import { IncorporationAddressIf, ShareClassIF, NameTranslationIF } from './'
Copy link
Collaborator Author

@severinbeauvais severinbeauvais May 14, 2021

Choose a reason for hiding this comment

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

The previous code had this interface looking in the parent's "interfaces" folder for these imports. This is incorrect. This interface should look in THIS folder for any imports.

Any shared interface (or mixin, enum, etc) should be able to get everything it needs from the current folder structure (ie, this shared repo).

It's slightly different if an interface needs an enum... In this case, the interface should import from "@bcrs-shared-components/enums" so that it gets the versioned one.

Copy link
Collaborator

@cameron-eyds cameron-eyds left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@severinbeauvais severinbeauvais merged commit be1103e into main May 14, 2021
@severinbeauvais
Copy link
Collaborator Author

So, a bunch of components were updated as a result of this interface import change:

  • @bcrs-shared-components/certify@1.0.19
  • @bcrs-shared-components/contact-info@1.0.14
  • @bcrs-shared-components/court-order-poa@1.0.9
  • @bcrs-shared-components/fee-summary@1.1.2
  • @bcrs-shared-components/share-structure@1.0.15
  • @bcrs-shared-components/staff-payment@1.0.23
  • @bcrs-shared-components/action-chip@1.0.7
  • @bcrs-shared-components/interfaces@1.0.20

In my current ticket (6554), I only need the updated interfaces (1.0.20) and staff-payment (1.0.23).

I think no other dependenies (in any app) need to be updated at this time, since they obviously didn't experience the import issue I did. If and when they need an updated component, then at that time they can update their dependency(ies) (and do the appropriate testing, etc).

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.

2 participants