Skip to content

Custom labels#2027

Merged
Alkarex merged 28 commits intoFreshRSS:devfrom
Alkarex:custom_tags
Sep 29, 2018
Merged

Custom labels#2027
Alkarex merged 28 commits intoFreshRSS:devfrom
Alkarex:custom_tags

Conversation

@Alkarex
Copy link
Copy Markdown
Member

@Alkarex Alkarex commented Sep 16, 2018

@Alkarex Alkarex added the Work in progress 🚧 Wait before merging label Sep 16, 2018
@Alkarex Alkarex added this to the 1.12.0 milestone Sep 16, 2018
@Alkarex
Copy link
Copy Markdown
Member Author

Alkarex commented Sep 16, 2018

First draft

And uppercase SQL types
@Alkarex
Copy link
Copy Markdown
Member Author

Alkarex commented Sep 16, 2018

image

@Alkarex
Copy link
Copy Markdown
Member Author

Alkarex commented Sep 16, 2018

image

@Alkarex Alkarex changed the title Custom tags Custom labels Sep 16, 2018
@Alkarex
Copy link
Copy Markdown
Member Author

Alkarex commented Sep 17, 2018

Now with the possibility to add new tags:

image

@Alkarex
Copy link
Copy Markdown
Member Author

Alkarex commented Sep 19, 2018

If someone tried this branch, the last commit introduces a new field. Either drop the tag tables (which will be re-created automatically), or add the field with:

ALTER TABLE freshrss_alice_tag ADD COLUMN attributes TEXT;

FreshRSS#2027 (comment)
(I would have personnally prefered keeping the readability of a real
value instead of a constant, in this case of many SQL fields)
@Alkarex
Copy link
Copy Markdown
Member Author

Alkarex commented Sep 22, 2018

TODO:

  • Drop-down menu to e.g. remove tags
  • Mark as read
  • Read/unread views
  • Live-change unread tags when marking as read/unread
  • Keep tagged articles during purge?
  • Investigate tag options in API / mobile clients

Copy link
Copy Markdown
Member

@aledeg aledeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 🎉

@aledeg
Copy link
Copy Markdown
Member

aledeg commented Sep 23, 2018

Nice work @Alkarex

@Alkarex
Copy link
Copy Markdown
Member Author

Alkarex commented Sep 23, 2018

Thanks @aledeg , I hope you will like it :-)

Add SQL check that tag names must be distinct from category names
@Alkarex
Copy link
Copy Markdown
Member Author

Alkarex commented Sep 24, 2018

Google Reader API implemented. Fully functional with News+:

screenshot_20180924-232132_news

screenshot_20180924-232212_news

@Alkarex
Copy link
Copy Markdown
Member Author

Alkarex commented Sep 25, 2018

Now also with some basic support in EasyRSS (only to read, not to add tags):
screenshot_20180925-085417_easyrss

@Alkarex Alkarex merged commit 8ee8a57 into FreshRSS:dev Sep 29, 2018
@Alkarex Alkarex deleted the custom_tags branch September 29, 2018 18:47
@Alkarex Alkarex mentioned this pull request Oct 4, 2018
mdemoss pushed a commit to mdemoss/FreshRSS that referenced this pull request Mar 25, 2021
* First draft of custom tags

FreshRSS#928
FreshRSS#1367

* SMALLINT to BIGINT for id_entry

And uppercase SQL types

* Fix layout for unreads

* Start UI menu

* Change menu order

* Clean database helpers

FreshRSS#2027 (comment)

* Travis rules do not understand PostgreSQL constants

Grrr

* Tag controller + UI

* Add column attributes to tags

* Use only favicon for now, for label

* Fix styling for different themes

* Constant for maximum InnoDB index length in Unicode

FreshRSS#2027 (comment)
(I would have personnally prefered keeping the readability of a real
value instead of a constant, in this case of many SQL fields)

* Use FreshRSS_Factory::createCategoryDao

* Add view of all articles containing any tag

* Fix search in tags

* Mark as read tags

* Partial auto-update unread tags

* More auto update tag unreads

* Add tag deletion

* Do not purge tagged articles

* Minor comment

* Fix SQLite and UI bug

* Google Reader API support for user tags

Add SQL check that tag names must be distinct from category names

* whitespace

* Add missing API for EasyRSS

* Compatibility SQLite

Problematic parentheses

* Add SQL DISTINCT for cases with multiple tags

* Fix for PostgreSQL

PostgreSQL needs some additional type hint to avoid "could not determine
data type of parameter $1"

http://www.postgresql-archive.org/Could-not-determine-data-type-of-parameter-1-tp2171092p2171094.html
Alkarex added a commit to Alkarex/FreshRSS that referenced this pull request Sep 10, 2023
Should help with some DB lock issues.

Complete FreshRSS#3558 after FreshRSS#5625 already cherry-picked from it.

* Removed auto-update of MySQL GUID case sensitivity
FreshRSS#2078
  * Contributed to a DB lock in FreshRSS#5008

Also removed the following non-problematic auto-updates, simply because they were older than the above ones
* Auto-create custom labels (1.12.0) FreshRSS#2027
* Auto-add JSON column for feeds (1.11.0) FreshRSS#1838
* Auto-create temporary tables (1.7.0) FreshRSS#1470
Alkarex added a commit that referenced this pull request Sep 12, 2023
Should help with some DB lock issues.

Complete #3558 after #5625 already cherry-picked from it.

* Removed auto-update of MySQL GUID case sensitivity
#2078
  * Contributed to a DB lock in #5008

Also removed the following non-problematic auto-updates, simply because they were older than the above ones
* Auto-create custom labels (1.12.0) #2027
* Auto-add JSON column for feeds (1.11.0) #1838
* Auto-create temporary tables (1.7.0) #1470
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants