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

Ea 3925 issue item descriptions profile #261

Merged
merged 4 commits into from
Sep 11, 2024

Conversation

SrdjanStevanetic
Copy link
Contributor

No description provided.

@@ -10,7 +10,8 @@
*/
public enum UserSetTypes implements JsonKeyword {

COLLECTION("Collection"), DYNAMICCOLLECTION("DynamicCollection"), BOOKMARKSFOLDER("BookmarkFolder"), ENTITYBESTITEMSSET("EntityBestItemsSet");
COLLECTION("Collection"), DYNAMICCOLLECTION("DynamicCollection"), BOOKMARKSFOLDER("BookmarkFolder"), ENTITYBESTITEMSSET("EntityBestItemsSet"),
GALLERY("Gallery");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Gallery must not be included here. Only the values used in the type must be included here. For the time being we can use a constant in WebUserSetModelFields

@@ -280,6 +292,11 @@ public boolean isCollection() {
return UserSetTypes.COLLECTION.getJsonValue().equals(getType());
}

@Override
public boolean isGallery() {
return UserSetTypes.GALLERY.getJsonValue().equals(getCollectionType());
Copy link
Collaborator

Choose a reason for hiding this comment

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

need to use a different constant

@@ -594,7 +599,7 @@ public void validateWebUserSet(UserSet webUserSet, boolean isAlreadyPublished) t
@Override
public void validateCollectionSize(UserSet webUserSet, int newItems) throws ItemValidationException {
Copy link
Collaborator

Choose a reason for hiding this comment

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

please rename to validateGallerySize

@@ -594,7 +599,7 @@ public void validateWebUserSet(UserSet webUserSet, boolean isAlreadyPublished) t
@Override
public void validateCollectionSize(UserSet webUserSet, int newItems) throws ItemValidationException {
final int collectionMaxSize = getConfiguration().getCollectionMaxSize();
Copy link
Collaborator

Choose a reason for hiding this comment

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

the mthod in the configuration needs to be changed to getGalleryMaxSize

@gsergiu gsergiu merged commit 9e6db26 into develop Sep 11, 2024
1 of 2 checks passed
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