[PATCH] D44389: [LNT] Error accessing URL /db_default/v4/nts/profile/ajax/getFunctions; NOT FOUND

Leandro Nunes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 12 08:46:32 PDT 2018


leandron created this revision.
leandron added reviewers: llvm-commits, cmatthews, MatzeB, kristof.beyls.

This is a follow-up from https://reviews.llvm.org/D43862, to cover other function the were executing the same code and adding test coverage for the existing functionality.

Original message by Przemek Wirkus:

Hi,
This patch is response to issue with LNT WebUI "Error accessing URL /db_default/v4/nts/profile/ajax/getFunctions; NOT FOUND". This issue appears in certain circumstances when user access Web UI under LNT / nts / profile.

Modified by this patch session query may fetch row(s) with profile_id values set to NULL. In order to fetch only not NULL values this patch modifies way we query DB. Query rows with profile_id set to NULL are not desired when query for LNT/nts/profile data.
Note that session query limits it's search to first element of the query which may have profile_id set to NULL (if entry of this type was imported to LNT database before any entry with profile data).


https://reviews.llvm.org/D44389

Files:
  lnt/server/ui/profile_views.py
  tests/SharedInputs/profile-report.json
  tests/server/db/ImportProfile.py
  tests/server/db/Inputs/profile-report.json
  tests/server/ui/V4Pages.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44389.138022.patch
Type: text/x-patch
Size: 11437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180312/9b5645fe/attachment.bin>


More information about the llvm-commits mailing list