-
Notifications
You must be signed in to change notification settings - Fork 48
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
[WIP] Search Engine (issue 535) #97
base: master
Are you sure you want to change the base?
Conversation
@@ -551,6 +551,15 @@ | |||
<artifactId>mail</artifactId> | |||
<version>1.4.5</version> | |||
</dependency> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ignore any local changes I have made. The only one which matters is this solr dependency.
pom.xml
Outdated
@@ -214,7 +214,7 @@ | |||
<hibernate.dialect>org.hibernate.dialect.PostgreSQLDialect</hibernate.dialect> | |||
<hibernate.connection.driver_class>org.postgresql.Driver</hibernate.connection.driver_class> | |||
<hibernate.hbm2ddl.auto>update</hibernate.hbm2ddl.auto> | |||
<hibernate.show_sql>true</hibernate.show_sql> | |||
<hibernate.show_sql>false</hibernate.show_sql> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My two cents about this: instead of modifying the common pom.xml file, you should rather maintain your own Maven settings.xml file as very recently documented here: http://wiki.sigmah.org/doku.php?id=contributorguide:preparebuildenvironment#step_3your_first_build
Enjoy !
Good frequency of small commits, keep with this habit ! I makes following and understanding easier ! Two general comments:
Could you adjust your future work to improve those two issues ? Good work so far ! Continue like that ! |
Apologies for forgetting to put the issue number each time! The codacy report mostly suggests that I clean up my unused imports. At present I am keeping them just in case I might need to import some stuff again, and I'll clean them up as soon as I'm sure I don't require them at all. And I'll soon modify my pom.xml file as well and remove local settings as you mentioned. Thank you! |
In my latest commit ( 8dd81b4 ), most projects are opening out on clicking the corresponding search result, but some are facing permission issues. Need to investigate what are the permissions preventing those specific projects from opening out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Search Filtering" in the commit 049a3ee means the filtering of the query according to need i.e Projects, OrgUnits, Contacts. Note: First-time connection error is not yet resolved. It re-occurs and the temporary fix did not work.
"Filtering" in 9d15b0a means the filtering of the results based on the permissions the currently logged in user has.
In the commit dd095d6, I have added an auto index job which does a solr full data import. This job is initialized when the dashboard first loads ( this is a temporary solution just to test whether the job works or not ), and keeps firing every 10 minutes. |
0604656 : Should be global 'solr' core url. |
bec9e80: I have added a column in the table organization, hence added a migration sql file as mentioned here: http://wiki.sigmah.org/doku.php?id=contributorguide:contributionrules. I hope there is nothing more to change. |
…list of FileVersion objects to use for File Indexing
…ern, changed solr configs files
It seems there is a jdk version error, i.e I am compiling with JDK 1.8 and the builder is running tests with JDK 1.6 or 1.7 : https://stackoverflow.com/questions/23249331/java-unsupported-major-minor-version-52-0 |
By "rudimentary" files results filtering, I mean that only those files which the currently logged in user is an author of are being shown in the search results. On clicking these results, the file successfully downloads. This is the best permission I am able to implement for now ( and is partially useful at the same time ), due to the complexity of the code. For future, a better permission has to be implemented. |
Well, for this one i'm 50/50 about integration. At the first sight, it seems that it's a good basis with not so much impacts, which is nice but on the other hand, while the development has been focused on building a viable POC (which is fine), non-working/limit cases seems not sufficiently considered ( Seems a good start with things in the right place through. I think a developer who would have to implement this feature should seriously consider continuing this PR, it may be faster than starting from nothing. |
Thanks @numero-six for this review ! So, if I understand you correctly, your reluctance mainly come from functional issues like a lack of reset button, or improvable error messages. But you consider this piece of work as valuable enough to start to have a search engine in Sigmah. |
No description provided.