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

Database name is hardcoded in 3 places in instrument manager display errors #1412

Conversation

gluneau
Copy link
Contributor

@gluneau gluneau commented Nov 18, 2015

Now loading database name from config.

@gluneau gluneau added the Cleanup PR or issue introducing/requiring at least one clean-up operation label Nov 18, 2015
@gluneau gluneau added this to the 16.04 milestone Nov 18, 2015
@@ -73,6 +73,7 @@ class NDB_Menu_Filter_instrument_manager extends NDB_Menu_Filter

function _setDataTableRows($count)
{
$config = NDB_Config::singleton();
Copy link
Collaborator

Choose a reason for hiding this comment

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

The config object should be created with NDB_Factory, not the singleton method.. also, I think the Settings object (which can also be created from the factory...) is a cleaner way of getting this since it directly has a Settings->dbName() function to get the database name

@christinerogers
Copy link
Contributor

Fantastic!

For 15.10, the Wiki already says these 3 places should be manually edited.
For the 16.04 release, we should update the documentation to remove that recommendation.
Tagging it with "To Document for Release" as a future-reminder (this tag can be removed when we update the documentation at release time)

@christinerogers christinerogers added the Document at Release PR adds or changes a feature such that the wiki (or other documentation) must be updated label Nov 19, 2015
driusan added a commit that referenced this pull request Nov 24, 2015
…-places-in-Instrument-manager-display-errors

Database name is hardcoded in 3 places in instrument manager display errors
@driusan driusan merged commit 198b30a into aces:16.04-dev Nov 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup PR or issue introducing/requiring at least one clean-up operation Document at Release PR adds or changes a feature such that the wiki (or other documentation) must be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants