Releases: DSD-DBS/py-capellambse
Releases · DSD-DBS/py-capellambse
capellambse v0.5.65
Notable changes
-
This release introduces model validation using a custom rule set.
Note that this feature is distinct from the "Validate Model" option in the Capella GUI. Validation in capellambse uses its own custom set of rules.
In this initial feature release, the rule set is hard coded, and only contains a handful of rules that have proven useful in internal tests. Future releases may extend this functionality with more rules, and may add the ability to load and apply a custom rule set.
Full changelog
New features
- Implement modelling rules and validation by @freshavocado7 (add991f)
Bug fixes
- Prefer local over remote Docker images by @MoritzWeber0 (0237ee1)
Build system changes
- Maintain dependency versions by @Wuestengecko (610da1b)
capellambse v0.5.64
Notable changes
- This release introduces a new method on model objects (specifically,
GenericElement
subclasses), which exposes the icon that would be used when drawing this element on a diagram. Refer to its documentation for more details: https://dsd-dbs.github.io/py-capellambse/code/capellambse.model.html#capellambse.model.GenericElement._get_icon
Full changelog
New features
- model: Show object icon HTML and text repr by @Wuestengecko (1bc4f9e)
- Add functions to retrieve object icons by @Wuestengecko (5f22699, 3b92f5c)
- model: Add function to convert between diagram formats by @Wuestengecko (84f3231)
- model: Evaluate REPR_DRAW on any first read by @Wuestengecko (da5e010)
Bug fixes
- model: Don't show an empty box if there's no icon by @Wuestengecko (f523bc9)
- Add box styling for Physical Actors by @huyenngn (281b1af)
- Move some warnings to "DEBUG" level by @Wuestengecko (a020c60)
Unit test changes
- Fix name of test module for
model.diagram
by @Wuestengecko (6604562)
Code refactorings
- Simplify PhysicalComponent styleclass generator by @Wuestengecko (49491f1)
- svg: Fully decouple markers and symbols by @Wuestengecko (0f4e504)
capellambse v0.5.63
New features
- model: Optionally enforce XHTML by @Wuestengecko (0915cc7)
Documentation changes
- Document supported environment variables by @Wuestengecko (0500335)
capellambse v0.5.62
New features
Bug fixes
- Add tag for allocated_functional_exchanges accessor by @huyenngn (954b7ec)
- loader: Reuse old namespaces for unknown plugins by @Wuestengecko (054a2c0)
- namespaces: Tie 're' namespace to core viewpoint by @Wuestengecko (df4a03a)
- exs: Ensure namespaces are sorted properly by @Wuestengecko (dd46113)
Code refactorings
- diagram: Simplify some styleclass mappers by @Wuestengecko (4819e23)
capellambse v0.5.61
Bug fixes
- model: Round namespace versions by @Wuestengecko (d87e4c7)
- model: Make less assumptions about IDs by @Wuestengecko (fd58299)
- model: Improve typing around ElementList by @Wuestengecko (c90d403)
Code refactorings
- Use QName instead of manually parsing tags by @Wuestengecko (aaf8241)
capellambse v0.5.60
New features
- Crop SVG diagrams to content by @jamilraichouni (9f35025)
(Experimental, has to be enabled viaCAPELLAMBSE_EXPERIMENTAL_CROP_SVG_DIAGRAM_CACHE_VIEWPORT=1
)
Bug fixes
- reqif: Ignore one-sided relations by @Wuestengecko (bfc3f8e)
- model: Deduplicate
ElementList.map()
output by @Wuestengecko (99a82dc) - Fix duplicate elements issue by @huyenngn (3d832fc)
capellambse v0.5.59
Reverted earlier changes
- model: Remove stop-gap to use old diagram IDs again by @Wuestengecko (3ba8f34)
New features
- model: Don't show
all_*
contents in repr by @Wuestengecko (150f210) - model: Specify format converter dependencies by @Wuestengecko (5269d3d)
Bug fixes
- diagram: Ignore labels with transforms by @ewuerger (9d3f776)
- git: Keep cache locked during init by @Wuestengecko (d38d285)
- model: Ignore UUID dups within AIRD fragments by @Wuestengecko (3f96fb5)
- model: Make DataType.pattern optional by @Wuestengecko (c0512ab)
- model: Expect >1 involving functional chain by @Wuestengecko (83e00c9)
- model: Fix rare exception in ElementList dir() by @Wuestengecko (799c529)
CI/CD changes
- Update to types-lxml stable release by @Wuestengecko (1eb96d9)
capellambse v0.5.58
New features
- model: Use enum's value for XML by @Wuestengecko (d1f9553)
- model: Import all Enums from the metamodel by @Wuestengecko (70117a5)
- model: Forward diagram XML objects to Diagram by @Wuestengecko (66eb25e)
- decl: Resolve promises for sync find by @huyenngn (33edeae)
- loader: Automate namespace management by @Wuestengecko (aa654a7)
- Add methods for viewpoint management by @Wuestengecko (763ed2d)
- Add viewpoint names to known namespaces by @Wuestengecko (2c674d0)
Performance improvements
- glart: Only look up the cache once by @Wuestengecko (f03db80)
Bug fixes
- Add Capella nature to test project by @jamilraichouni (46328de)
- model: Declare R/O diagram attributes statically R/O by @Wuestengecko (ba19ef8)
- model: Ignore missing follow in LinkAccessor by @Wuestengecko (8f4a483)
- svg: Fix symbol label wrapping by @ewuerger (ec537eb)
- readme: Fix second link to intro notebook by @Wuestengecko (006f9ba)
- model: Modify existing object instead of replacing for RoleTagAccessor by @huyenngn (01b93ab)
- Remove broken
Association.source_role
by @Wuestengecko (801c8cd) - svg: Fix labels of objects with feature lines by @ewuerger (83e5544)
Documentation changes
- Fix broken anchor for "Specifying models" by @Wuestengecko (f4a6e9c)
- repl: Improve documentation of the REPL by @Wuestengecko (2831d6b)
Code refactorings
- model: Adjust Enums to match metamodel by @Wuestengecko (debbbe2)
- model: Use Accessor for OperationalActivity inputs/outputs by @ewuerger (c2fe605)
- Simplify namespace version checks by @Wuestengecko (d7eb8f4)
capellambse v0.5.57
New features
- repl: Add a little fzf wrapper function by @Wuestengecko (d9a3de0)
- model: Allow specifying classes on RoleTagAccessor by @Wuestengecko (e68c3a4)
- model: Recognize wildcard classes in search by @Wuestengecko (1e2b069)
- model: Generate hlink URLs in
_short_html_
by @Wuestengecko (f550180)
Bug fixes
- model: Use correct XML tags for
*Function
classes by @Wuestengecko (429a753) - model: Fix links to owned functions by @Wuestengecko (6cdd5a3)
- model: Fix functional allocations and deployment links by @Wuestengecko (86d3d53)
Documentation changes
- Use markdown for README and CONTRIBUTING by @Wuestengecko (d3966f5, d00da25)
capellambse v0.5.56
Notable changes
- With this release, capellambse supports the new environment variable
CAPELLAMBSE_LEGACY_DIAGRAM_IDS
. When set to a non-empty string,capellambse.model.diagram.Diagram
objects will report the pre-0.5.52 IDs on theiruuid
field. This is intended as a stop-gap measure to aid in migrating code that expects the old IDs, and should not be used or relied on with newly written code. It will eventually be removed again.
Full changelog
New features
- model: Expose SA metamodel as
model.sa
by @Wuestengecko (1529d16) - model: Expose the representation path on diagrams by @Wuestengecko (c8cd58e)
- Add a helper for transforming
hlink://
URLs by @Wuestengecko (0bc2bdd) - Implement replacing model objects for RoleTagAccessors by @huyenngn (4f05ca2)
Performance improvements
- git: Use tree-less partial clones by @Wuestengecko (b00b6b6)
Bug fixes
- git: Resolve default branch by @huyenngn (203041c)
- model: Add stop-gap to use old diagram IDs downstream by @Wuestengecko (44712de)
Documentation changes
- Update
load_model_extensions
docstring by @Wuestengecko (be93e53)
CI/CD changes
- Add pyupgrade hook by @Wuestengecko (79ce1b6)
Unit test changes
- Move git-specific test over to git test file by @Wuestengecko (a91c83a)
Code refactorings
- Type-check with
types-lxml
by @Wuestengecko (2e7b39e)