Deprecate/Private/Fork/Rename model changes Proposal #5074
Replies: 7 comments 5 replies
-
I discussed this with @ranm8 , and we'll be going another route.
@GiladShoham , FYI. Any comments before I implement this, would be much appreciated. |
Beta Was this translation helpful? Give feedback.
-
After another discussion with Ran, we want to align all "metadata" types we have on the component.
In terms of implementation, the Workspace provides an API to write metadata to the .bitmap file. When the component is loaded, the workspace during This also helps with another feature we want. When running
Once the component is loaded, the workspace will override the defaultScope with this scope, and will set the envs according to this config. This will override any other configuration the workspace.jsonc has. @GiladShoham , any insight here is welcome. |
Beta Was this translation helpful? Give feedback.
-
Another discussion with Ran, a few more points:
|
Beta Was this translation helpful? Give feedback.
-
About removing the data from .bitmap. One option (suggested by Ran) is to remove it during tag, and in order to not loose the data when untagging, this metadata will be saved in a separate file inside the scope. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
To summarize our options in regard to remove the
|
Beta Was this translation helpful? Give feedback.
-
Another conclusion - (discussed with Ran, Gilad & Itay). Add a new prop Another option we were considering is to have this |
Beta Was this translation helpful? Give feedback.
-
Edit: See the final implementation details here: #5111
Goals:
Proposal:
Add a new model object "ComponentMetadata". It'll have the following fields:
Change the
components
prop in theLane
object.From:
{ id: BitId; head: Ref }
To:
{ id: BitId; head: Ref, metadata: ComponentMetadata }
Component
model will have a reference to this metadata by a new propmetadata
.bit deprecate
this metadata object will be written to the objects dir and be referenced from the Component model.bit status
will show components that have references to metadata as staged.bit export
will merge the metadata object into the component and once the export succeeded, will delete the metadata object locally and remove the reference from the Component model.bit export
will export the metadata objects as well.TBD: how do we know when a lane is staged due to changes in the metadata? maybe add
exported: boolean
field.Beta Was this translation helpful? Give feedback.
All reactions