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

part table support #162

Merged
merged 3 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.

## [0.8.5] - 2023-04-26

### Added

- Part table support for forms [#162](https://github.com/datajoint/pharus/pull/162)

## [0.8.4] - 2023-04-04

### Changed
Expand Down Expand Up @@ -296,6 +302,7 @@ Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
- Support for DataJoint attribute types: `varchar`, `int`, `float`, `datetime`, `date`, `time`, `decimal`, `uuid`.
- Check dependency utility to determine child table references.

[0.8.5]: https://github.com/datajoint/pharus/compare/0.8.4...0.8.5
[0.8.4]: https://github.com/datajoint/pharus/compare/0.8.3...0.8.4
[0.8.3]: https://github.com/datajoint/pharus/compare/0.8.2...0.8.3
[0.8.2]: https://github.com/datajoint/pharus/compare/0.8.1...0.8.2
Expand Down
19 changes: 17 additions & 2 deletions pharus/component_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,25 @@ def __init__(self, *args, **kwargs):
s,
connection=self.connection,
),
t,
t[0],
)
if len(t) == 1
else getattr(
getattr(
dj.VirtualModule(
s,
s,
connection=self.connection,
),
t[0],
),
t[1],
)
for s, t in (
_.format(**request.args).split(".")
(
_.format(**request.args).split(".")[0],
_.format(**request.args).split(".")[1:],
)
for _ in self.component_config["tables"]
)
]
Expand Down
2 changes: 1 addition & 1 deletion pharus/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Package metadata."""
__version__ = "0.8.4"
__version__ = "0.8.5"