J. King
cfef75ccba
Don't update the feed URL when fetching
This can result in some unpredictable constraint violations
5 years ago
J. King
db5bcb78a3
Fix lookup of evergreen tokens
5 years ago
J. King
f7240301e4
Basic database maintenance
Closes #169
5 years ago
J. King
422eaf9605
Invalidate sessions on password change; closes #170
5 years ago
J. King
6ef13d0880
Style fixes
5 years ago
J. King
3899ee6b4e
Allow for replacing label and tag associations
This supplements adding and removing
5 years ago
J. King
2af223753d
Function to add a feed without a subscription
5 years ago
J. King
ceecd58393
OPML parsing comments and minr fixes
5 years ago
J. King
e3d2215920
Style fixes
5 years ago
J. King
12f23ddc16
Updated tests for arbitrary sorting
5 years ago
J. King
f72c85c9f6
Hopefully working but maybe broken custom sorting
5 years ago
J. King
4b133bddd6
Prototype arbitrary result ordering
5 years ago
J. King
74fc39fca0
Implement multi-folder context option
5 years ago
J. King
cce1089e10
Handle edge case with folder 0
Folder 0 (the root folder) is a valid, though nonsensical selection:
using it as a positive option is the same as not using the option at
all, and using it as a negative option necessarily yields an empty set.
However, it can in some contexts be validly specified, and so it should
be handled consistently. It had not been previously, but is now.
5 years ago
J. King
98f6fca7e3
Enforce minimum array size (for now)
5 years ago
J. King
ef1b761f95
Implement most multiple-item context options
Selecting multiple folder trees will require further effort
5 years ago
J. King
d8407330a0
Add a function to get when feeds were last updated
This is an optimization for Fever, which returns this information with
every API call.
5 years ago
J. King
acb3973149
Prototype implementation of Fever groups and feeds
5 years ago
J. King
e45ba3f0ea
Add means of unsetting a password in the backend
5 years ago
J. King
b02c910b1e
Make token creation check that the user exists
5 years ago
J. King
38bdde1167
Add access tokens to the db, with relevant code
Tokens are similar to sessions in that they stand in for users, but the
protocol handlers will manage them; Fever login hashes are the
originating use case for them. These must never expire, for example,
and we need to specify their values.
This commit also performs a bit of database clean-up
5 years ago
J. King
5de1844f6d
Add article selection by tag
5 years ago
J. King
e6f70527cf
Simplify tag summary
5 years ago
J. King
ff0c9a3a55
Add functionality for interacting with subscription tags
5 years ago
J. King
e2cba68c1b
Clarify various SQL queries
5 years ago
J. King
4945f8baa3
Clarify various SQL queries
5 years ago
J. King
fb1bdbfb37
Database schema for subscription tags
5 years ago
J. King
44366f48bf
Remove arbitrary search term limits; fixes #150
5 years ago
J. King
21fdd66d37
Work around limit to SQL parameter placeholders for IN() clauses
Improves #150
LIKE-based matches also need to be similarly conservative
5 years ago
J. King
95de375e0b
Handle folder and label exclusion
Consequently the way label data are retrieved was completely overhauled
5 years ago
J. King
677e33e518
Add text search exclusions
5 years ago
J. King
0dc82f64d5
Allow ranges in exclusion contexts
5 years ago
J. King
b950ac066f
Restrict options in not-context and hopefully make it easier to use
5 years ago
J. King
14c02d56ac
Implement new context options other than not().
Context handling has also been re-organized to simplify later
implementation of the not() option
5 years ago
J. King
2df7c25b66
Add ability to search note text
5 years ago
J. King
bc3182a961
Basic substring searching
5 years ago
J. King
17f3a2f059
Start on an API overview for the Database class
5 years ago
J. King
49cefaf5c8
Complete API documentation for the Database class
5 years ago
J. King
d3a385beef
Partial API documentation for the Database class
5 years ago
J. King
5cd84c4ab4
Validate configuration parameters on import, and other changes
- Each parameter is checked for type and normalized
- Interval strings are converted to DateInterval objects
- Timeouts can be specified as interval strings
- Most intervals can be null to signify infinity
- Driver classes are checked that they implement the correct interface
- Short driver names may be used, and are used by default
- Helpful errors messages are printed in case of erroneous configuration
Exporting is currently broken; this will be fixed in an upcoming commit
5 years ago
J. King
81acba90dc
Use strict equality when comparing strings
5 years ago
J. King
b4de56a64e
Work around MySQL silliness with same-table foreign keys
5 years ago
J. King
f0d30c2eee
Make munging of queries a generic feature
5 years ago
J. King
de07352fd0
Syntactic adjustments for MySQL
- "key", "read", and "rename" are reserved words
- CTEs in INSERTs must precede SELECT
- Empty sets are represented only by explicit null
5 years ago
J. King
50f92625ef
Use PosgreSQL's existing general Unicode collation
All collations appear to be case-insensitive
5 years ago
J. King
2bebdd44cf
Implementation of native PostgreSQL interface
Changes to the Database class were required to avoid outputting booleans
5 years ago
J. King
cf896121b2
Style fixes
5 years ago
J. King
51755a2ce6
Retire article field groups
5 years ago
J. King
15301cd7dc
Fix cleanup tests in PostgreSQL
5 years ago
J. King
258be1d54e
Fix most PostgreSQL test failures
Reasons for failures included an unhandled error code, erroneous sorting
assumptions, and a broken computation of the next insert ID in tests
Five failures remain.
5 years ago