Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

increase lucene filter limit and avoid moderation request zombie #233

Merged
merged 4 commits into from
Sep 20, 2016

Conversation

heydenreich
Copy link
Contributor

set lucene.limit to 150 …

avoid moderation request zombie …

@maxhbr
Copy link
Member

maxhbr commented Sep 15, 2016

@heydenreich: please rename the title

@heydenreich heydenreich changed the title Dev/lucene filter limit and moderation request zombie increase lucene filter limit and avoid moderation request zombie Sep 15, 2016
* get a maximum of 150 results when using the filter in project and component portlet
* has to be tested: is speed still ok?
* closes #221 if speed is ok
* if last moderator wants to unsubscribe, pop-up - not allowed
* closes #114
…d in linkedProjects.jspf

* changes for license info download also apply to project details view in moderation portlet
* there, licenseDownloadInfo is not available and not necessary -> moderation portlet crashed
* solution: make download license info form only available in project detail mode
@heydenreich
Copy link
Contributor Author

  • rebased and changed in order to re-use (entire) project detail view also in moderation view
  • before: linkedProjects.jspf was already used in project details and moderation request view
  • crashed in moderation request view because of missing licenseDownloadInfo
  • this problem was solved, licenseDownloadForm is not displayed any more in moderation view

@mcjaeger
Copy link
Contributor

tested the moderator thing with components, projects and releases -> OK

@mcjaeger
Copy link
Contributor

tested the search limit -> works as well

@mcjaeger
Copy link
Contributor

looked at the source code with my basic understanding, looks OK.

@mcjaeger mcjaeger assigned maxhbr and unassigned mcjaeger Sep 20, 2016
} catch(TException e) {
log.error("Error in Moderation ", e);
}
request.setAttribute(PortalConstants.REQUEST_STATUS, status);
Copy link
Member

Choose a reason for hiding this comment

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

Would be good to move this into the try-block. One should not set an attribute to null

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -25,6 +25,7 @@

import static com.siemens.sw360.datahandler.common.CommonUtils.addAll;
import static com.siemens.sw360.datahandler.common.CommonUtils.removeAll;
import static com.siemens.sw360.datahandler.common.CommonUtils.nullToEmptySet;
Copy link
Member

Choose a reason for hiding this comment

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

this might be unwanted

Copy link
Contributor Author

@heydenreich heydenreich Sep 20, 2016

Choose a reason for hiding this comment

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

removed



<%@include file="/html/moderation/includes/moderationActionButtons.jspf"%>
<br/>
Copy link
Member

Choose a reason for hiding this comment

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

This return looks like a hack to solve a css problem. Might be better to wrap the buttons into a div and use the display:... or margin:... properties

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@heydenreich heydenreich Sep 20, 2016

Choose a reason for hiding this comment

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

it is already wrapped in a div. I removed the <br/>

@maxhbr maxhbr assigned heydenreich and unassigned maxhbr Sep 20, 2016
@heydenreich heydenreich force-pushed the dev/luceneFilterLimitAndModerationRequestZombie branch from f59b404 to d703a80 Compare September 20, 2016 15:49
@heydenreich heydenreich force-pushed the dev/luceneFilterLimitAndModerationRequestZombie branch from d703a80 to d110b73 Compare September 20, 2016 15:52
@mcjaeger mcjaeger merged commit 836305b into master Sep 20, 2016
@heydenreich heydenreich deleted the dev/luceneFilterLimitAndModerationRequestZombie branch October 25, 2016 11:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Project list: filter use results in lists limited to 25 entries moderation request zombie
3 participants