Archive for June, 2010

User preferences – week 5

June 28th, 2010 No comments

Changes for the previous week:

  • setup script generates nicely formatted arrays when needed
  • new configuration oprion: $cfg['UserprefsDisallow'], allows to disallow user modifications to some values
    each setting in setup script that can be overridden by users now has a checkbox which allows to modify UserprefsDisallow
  • disabled options are marked as such in user preferences panel, tabs now have icons (I reused already available ones)
  • user preferences are applied immediately after save (at least from a user’s viewpoint), if any changed setting concerns the navigation frame, it is reloaded

In the meantime, Michal Čihař set up demo servers with all Summer of Code projects, updated to reflect current state of our repositories. If you are interested how we are doing, take a look:

My original plans for this week consisted mostly of clean up of refactored code, which is already done, so now I intend to take a closer look at import and export plugins. I have not decided yet whether I will duplicate all settings and put them in my configuration forms (the easy and inflexible way), or change plugins in a way allowing me to automatically read required information directly from their files (more complex but flexible, all future plugins and changes would not require any changes to user preferences).

Categories: phpMyAdmin, Summer of Code 2010 Tags:

User preferences – week 4

June 21st, 2010 No comments

Report for 4th week of Google Summer of Code.

Saving settings to database took me longer than I anticipated, so not everything I planned got done during this week. After finding a proper way to handle pmadb and finding a good place to call settings loading, I hit an unexpected problem with input validation – setup script’s code allowed to actually save incorrect data after showing a warning (what, after writing it myself two years ago, I totally forgot). I modified the approach for user preferences to disallow it, so that users will be able to save only forms that pass all validation rules.

So in short, tasks done:

  • forms are properly styled
  • user preferences are integrated with phpMyAdmin: saving and loading works
  • added proper error handling when submitting forms with erroneous data

My plans for the next week include integration with setup script (setting which options can be configured by end users). If I find time between learning for my exams, I will also clear my backlog – add Import and Export options.

Categories: phpMyAdmin, Summer of Code 2010 Tags:

User preferences – week 3

June 13th, 2010 No comments

Week 3 progress report for user preferences.

Things done:

  • added proper form display for most options, along with proper styling, default value setting and JavaScript validation
  • refactored setup script JavaScript code and fixed all comments to conform to JSDoc
  • added validation and translation strings for some new options

Tasks for the next week:

  • finish form display
  • add user preferences saving to pmadb
  • take care of Import and Export forms
Categories: phpMyAdmin, Summer of Code 2010 Tags:

User preferences – week 2

June 9th, 2010 No comments

Week 2 progress report.

I refactored most of setup script’s form handling classes to be more generic, settings’ medatada and validation information is now stored in config.values.php. All forms except for Import and Export tabs are defined.

This week I want to have first forms displayed, value reset and saving will come at a later date.

Categories: phpMyAdmin, Summer of Code 2010 Tags:

User preferences – week 1

June 1st, 2010 No comments

The first week has ended, my progress so far:

  • my development environment is really set up correctly this time 🙂
  • prepared a preliminary list of options to implement, these marked with [s] are already included in the setup script

In the second week I will start refactoring code and creating forms for options already included in the setup script.

Categories: phpMyAdmin, Summer of Code 2010 Tags: