Fossil

Check-in [cde6cbfc]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Omit query parameters from the /timeline view of search results. Use the defaults.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:cde6cbfc9dc6c5248a79959279b68c78ecbf9a4a4062d3c7f6555939d10d8ef3
User & Date: drh 2017-11-27 11:26:49
Context
2017-11-27
16:03
Add a setup parameter under Setup/Timeline for configuring the default number of entries in a timeline that lacks an n= query parameter. check-in: eed877c0 user: drh tags: trunk
11:26
Omit query parameters from the /timeline view of search results. Use the defaults. check-in: cde6cbfc user: drh tags: trunk
00:13
The /timeline page shows check-ins only if there is no y= query parameter and if the user has read ("r") permissions on the repo. check-in: 255adb04 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/search.c.

748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
      "  SELECT blob.uuid, event.objid, event.mtime"
      "    FROM event, blob"
      "   WHERE event.type='ci'"
      "     AND blob.rid=event.objid"
      ")"
      "INSERT INTO x(label,url,score,id,date,snip)"
      "  SELECT printf('Check-in [%%.10s] on %%s',uuid,datetime(mtime)),"
      "         printf('/timeline?c=%%s&n=8&y=ci',uuid),"
      "         search_score(),"
      "         'c'||rid,"
      "         datetime(mtime),"
      "         search_snippet()"
      "    FROM ckin"
      "   WHERE search_match('',body('c',rid,NULL));"
    );







|







748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
      "  SELECT blob.uuid, event.objid, event.mtime"
      "    FROM event, blob"
      "   WHERE event.type='ci'"
      "     AND blob.rid=event.objid"
      ")"
      "INSERT INTO x(label,url,score,id,date,snip)"
      "  SELECT printf('Check-in [%%.10s] on %%s',uuid,datetime(mtime)),"
      "         printf('/timeline?c=%%s',uuid),"
      "         search_score(),"
      "         'c'||rid,"
      "         datetime(mtime),"
      "         search_snippet()"
      "    FROM ckin"
      "   WHERE search_match('',body('c',rid,NULL));"
    );