View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0016421 | mantisbt | installation | public | 2013-09-29 06:19 | 2013-10-18 20:24 |
Reporter | grangeway | Assigned To | vboctor | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | won't fix | ||
Summary | 0016421: 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 | ||||
Tags | No tags attached. | ||||
The query is not quite unnecessary, at least until we make the installer create the first project as you pointed out in 0016423 |
|
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. |
|
MantisBT: master fb121e83 2013-09-28 16:13 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 |