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:

User preferences survey

May 30th, 2010 No comments

I made a short survey concerning users’ expectations for preferences in phpMyAdmin. If you use this application on daily basis, or used a few times and just want to share your opinion, please take a few minutes to fill it in – phpMyAdmin user preferences survey.

Categories: phpMyAdmin, Summer of Code 2010 Tags:

GSoC – start

May 27th, 2010 No comments

Summer of Code has officially started on Monday, so for the next twelve weeks I will be publishing here my plans for following weeks and results.

My development environment is already set, and like all fellow students coding for phpMyAdmin I will be using git for my Version Control System. Information on accessing my fork and published commits can be found here: At the beginning there won’t be much happening, as my semester ends around 24th June and until then the time I can spend on coding will be limited.

In the remainder of the week I want to look through all current configuration options to find out which ones can be safely modified by users, without compromising security and impending performance. After that is done, I will start refactoring the setup script, to extract code I can reuse, and begin UI design.

Categories: phpMyAdmin, Summer of Code 2010 Tags:

Google Summer of Code 2010

May 3rd, 2010 No comments

A few days ago I got accepted for this year’s Google Summer of Code, meaning that during this summer I will do my best to provide the phpMyAdmin project with new features, along with five other students.  You can read about our projects on the official Google Summer of Code 2010 site or Planet phpMyAdmin, where all student’s blogs all aggregated.

If you want to know more about my project, read on to my proposal below.

Read more…

Categories: phpMyAdmin, Summer of Code 2010 Tags: