Skip to content

Commit

Permalink
#15 - Namespace member list is empty sometimes
Browse files Browse the repository at this point in the history
- hotfix 1.2.1
- fix bug when getting namespace members
- update changelog and pom
  • Loading branch information
michael-82 committed Dec 9, 2021
1 parent 8bbd300 commit 8be51fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.2.1] - 2021-12-09
### Fixed
- correctly return namespace members

## [1.2.0] - 2021-11-24
### Added
- retrieving namespace members can optionally exclude elements which are also in a group
Expand All @@ -19,4 +23,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [1.0.0] - 2021-09-24
### Added
- initial version
- initial version
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>10.2.0</version>
</parent>
<artifactId>dehub-model</artifactId>
<version>1.2.0</version>
<version>1.2.1</version>
<name>de.dataelementhub.model</name>
<description>DataElementHub Model</description>

Expand Down Expand Up @@ -74,4 +74,4 @@
<version>2.13.0</version>
</dependency>
</dependencies>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ public static List<Member> getNamespaceMembers(CloseableDSLContext ctx, int user
.and(SCOPED_IDENTIFIER.IDENTIFIER.equal(namespaceIdentifier))
.and(SCOPED_IDENTIFIER.VERSION.equal(
ctx.select(DSL.max(SCOPED_IDENTIFIER.VERSION)).from(SCOPED_IDENTIFIER)
.where(SCOPED_IDENTIFIER.IDENTIFIER.equal(namespaceIdentifier))))
.where(SCOPED_IDENTIFIER.IDENTIFIER.equal(namespaceIdentifier))
.and(SCOPED_IDENTIFIER.ELEMENT_TYPE.equal(ElementType.NAMESPACE))))
.fetchOneInto(Integer.class);
// to check if Namespace is accessible by current user
getByDatabaseId(ctx, userId, namespaceId);
Expand Down

0 comments on commit 8be51fc

Please sign in to comment.