When an URL is already present in the list of Personalized Results, adding it again does not overwrite the existing entry, but created a duplicate instead.
When trying to change the type of one of the entires the following error appears:
Failed parsing payload: more than one row (DB::Error)
from lib/db/src/db/query_methods.cr:149:9 in 'post_user_rules'
from src/controllers/api/rules_controller.cr:1:1 in '->'
from lib/action-controller/src/action-controller/router/route_handler.cr:41:25 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
from /usr/share/crystal/src/http/server/request_processor.cr:51:11 in 'handle_client'
from /usr/share/crystal/src/fiber.cr:146:11 in 'run'
from ???
URLs should not appear twice in the list.