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

add the OPENGROK_DEFAULT_PROJECTS env var #2081

Merged
merged 1 commit into from
Apr 24, 2018

Conversation

vladak
Copy link
Member

@vladak vladak commented Apr 24, 2018

passthru for the -p option. I don't like that the shell script is a filter to Indexer however until it is rewritten such changes need to happen.

OpenGrok Outdated
@@ -311,6 +314,13 @@ DefaultInstanceConfiguration()
*) ENABLE_PROJECTS="-P" ;;
esac

if [ -n "${ENABLE_PROJECTS}" ]; then
DEFAULT_PROJECTS=""
for proj in $( IFS=","; echo ${OPENGROK_DEFAULT_PROJECTS} ); do
Copy link
Contributor

Choose a reason for hiding this comment

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

non blocking but wrong indentation

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@tulinkry
Copy link
Contributor

tulinkry commented Apr 24, 2018

The only point for this is if this is really useful because (as far as I remember - this might have changed) this default projects are used only when we don't have any cookies which is:

  1. first application start
  2. user cleaned cookies

Neither of this is very often.

@coveralls
Copy link

coveralls commented Apr 24, 2018

Pull Request Test Coverage Report for Build 2392

  • 0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
  • 4 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.01%) to 73.228%

Files with Coverage Reduction New Missed Lines %
src/org/opensolaris/opengrok/history/MercurialRepository.java 2 81.72%
src/org/opensolaris/opengrok/history/SubversionRepository.java 2 83.41%
Totals Coverage Status
Change from base Build 2389: 0.01%
Covered Lines: 30824
Relevant Lines: 42093

💛 - Coveralls

@vladak
Copy link
Member Author

vladak commented Apr 24, 2018

True, this only works when there are no cookies. I guess it is a way how to guide first time users a bit.

@vladak
Copy link
Member Author

vladak commented Apr 24, 2018

@tulinkry
Copy link
Contributor

Yes it is a bit more user friendly 😀

@vladak vladak merged commit 74bb8f9 into oracle:master Apr 24, 2018
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.

None yet

3 participants