View Issue Details

IDProjectCategoryView StatusLast Update
0016421mantisbtinstallationpublic2013-10-18 20:24
Reportergrangeway Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionwon't fix 
Summary0016421: log in page does unnecessary db query following 0016416
Description

Following fb121e83b48f4cc22a9c9af257d23d1ae9b25388 the logon page does an unnecessary db query.

Mantis will have >1 project once installed. This logic should be moved to the installation process to ensure that we have a default project at the end of the installation

TagsNo tags attached.

Relationships

related to 0016416 closedvboctor Improve first login experience by auto-redirecting to create project page 
related to 0016423 new Installation process should prompt users to key default configuration information 

Activities

dregad

dregad

2013-09-29 10:45

developer   ~0038135

The query is not quite unnecessary, at least until we make the installer create the first project as you pointed out in 0016423

vboctor

vboctor

2013-09-29 15:06

manager   ~0038139

Given that this is a cheap query that only runs when administrators login, I don't see it be an issue. Note that it also doesn't trigger if the administrator have remember me checked.

As we make more progress in this space, we could improve the approach here. I've added comments to the other bugs relating to what belongs into install vs. a wizard to guide the admin to complete setup upon login.

Related Changesets

MantisBT: master fb121e83

2013-09-28 16:13

vboctor


Details Diff
Fixes 0016416: Improve first login experience by auto-redirecting to create project page.

If MantisBT is pre-installed, the user lands in My View Page without knowing what to do.
We should handle the "first login" experience in MantisBT itself rather than the installation
and provide a helpful getting started over time. For now, we should start with auto-redirecting
to create project page if user is administrator and there aren't at least 1 project in the database.

The cost of this check is one cheap query on the projects table that returns 0 or 1 entries
which is only run at login of an administrator.
Affected Issues
0016416, 0016421
mod - admin/install.php Diff File
mod - core/project_api.php Diff File
mod - login_cookie_test.php Diff File