Closed
Bug 442055
Opened 16 years ago
Closed 16 years ago
Replace user-storage flat files in Pootle with database
Categories
(Webtools Graveyard :: Verbatim, defect, P2)
Webtools Graveyard
Verbatim
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dschafer, Assigned: dschafer)
References
Details
Attachments
(1 file, 2 obsolete files)
33.81 KB,
patch
|
Details | Diff | Splinter Review |
Currently, Pootle stores a lot of information in flat files (overall preferences, language info, project info, user preferences). These should be stored in databases instead.
Assignee | ||
Comment 1•16 years ago
|
||
Note that currently, the .prefs file can't use dots in usernames; hence, the dots in LDAP lookups are replaced with D0T. This is a terrible, terrible, terrible hack, and needs to be fixed in the database conversion. grep-ing for "D0T" in the pootle directory should find all instances of this hack.
Assignee | ||
Updated•16 years ago
|
Priority: -- → P2
Assignee | ||
Comment 2•16 years ago
|
||
This patch will relocate the user storage information to a database rather than a flat file. It is mostly working right now, though occasionally this error occurs: TimeoutError: QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30 More testing also needs to be done to make sure all features even remotely reliant on the user storage are still working, but the major features (login, registration, admin account creation) all appear to work.
Assignee | ||
Comment 3•16 years ago
|
||
This patch improves the database storage of users. The QueuePool bug has been fixed from the previous version, and a few more obscure features relying on the flat files have been updated. Some rather important performance issues aside (Suggest and Submit take almost 10 seconds, for some reason), the functionality of users databases is pretty much done.
Attachment #330317 -
Attachment is obsolete: true
Assignee | ||
Comment 4•16 years ago
|
||
The performance issues are now addressed in bug 446339, since they appear to be independent of this bug. Since that issue has nothing to do with this patch, I'll do some thorough testing of this patch tomorrow, then hopefully commit.
Assignee | ||
Comment 5•16 years ago
|
||
This is in revision 7816.
Attachment #330505 -
Attachment is obsolete: true
Assignee | ||
Comment 6•16 years ago
|
||
Everything seems to be working with users in a database, so marking this FIXED. The previous attachment modified a function (getuserswithrights in projects.py) to deal with dots in usernames and the existence of .prefs files to store rights. Bug 446441 was created to deal with moving rights/goals to a database, and a note was made there about this issue. I changed this bug to deal specifically with moving users to a database (since I accidentally had been using it for that), and created bug 446441 for rights/goals and 446442 for projects/languages. Bug 446443 was created to track all flat file -> database conversions.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Summary: Replace flat files in Pootle with database → Replace user-storage flat files in Pootle with database
Updated•8 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•