New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(keyword-agent) : new-keyword-agent #1107
Conversation
src/copyright/agent/identity.hpp
Outdated
@@ -1,6 +1,6 @@ | |||
/* | |||
* Copyright (C) 2014, Siemens AG |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the copyrights for all files.
00e7f97
to
115727b
Compare
Please change the commit message according to commit conventions. |
115727b
to
16ba498
Compare
Please add the below files to git ignore
|
16ba498
to
7a0c3ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the primary key and foreign key constrains on keyword and keyword_decision tables.
src/copyright/agent/keyword.conf
Outdated
# notice and this notice are preserved. This file is offered as-is, | ||
# without any warranty. | ||
# | ||
# Description: this file holds the regex configurations for the IP agent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change to:
Description: This file holds the regex configurations for the Keyword agent
7a0c3ed
to
8379eac
Compare
src/copyright/ui/keyword-hist.php
Outdated
@@ -0,0 +1,107 @@ | |||
<?php | |||
/*********************************************************** | |||
* Copyright (C) 2010-2014 Hewlett-Packard Development Company, L.P. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line can be removed
8379eac
to
ab30fbf
Compare
@@ -338,7 +338,7 @@ public function getAllEntries($tableName, $uploadId, $uploadTreeTableName, $type | |||
public function getDecisions($tableName,$pfileId) | |||
{ | |||
$statementName = __METHOD__.$tableName; | |||
$sql = "SELECT * FROM $tableName where pfile_fk = $1 and is_enabled order by copyright_decision_pk desc"; | |||
$sql = "SELECT * FROM $tableName where pfile_fk = $1 and is_enabled order by keyword_decision_pk desc"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ag4ums
The change is breaking ECC view:
Warning: pg_prepare(): Query failed: ERROR: column "ecc_decision_pk" does not exist LINE 1: ...ision where pfile_fk = $1 and is_enabled order by ecc_decisi... ^ in /usr/local/share/fossology/lib/php/Db/Driver/Postgres.php on line 62
Fatal error: Uncaught Fossology\Lib\Exception:
error executing: SELECT * FROM ecc_decision where pfile_fk = $1 and is_enabled order by ecc_decision_pk desc -- Fossology\Lib\Dao\CopyrightDao::getDecisionsecc_decision
ERROR: column "ecc_decision_pk" does not exist LINE 1: ...ision where pfile_fk = $1 and is_enabled order by ecc_decisi... ^ in /usr/local/share/fossology/lib/php/Db/DbManager.php:140 Stack trace:
#0 /usr/local/share/fossology/lib/php/Db/ModernDbManager.php(51): Fossology\Lib\Db\DbManager->checkResult(false, 'SELECT * FROM e...')
#1 /usr/local/share/fossology/lib/php/Db/DbManager.php(183): Fossology\Lib\Db\ModernDbManager->prepare('Fossology\\Lib\\D...', 'SELECT * FROM e...')
#2 /usr/local/share/fossology/lib/php/Dao/CopyrightDao.php(345): Fossology\Lib\Db\DbManager->getRows('SELECT * FROM e...', Array, 'Fossology\\Lib\\D...')
#3 /usr/local/share/fossology/copyright/ui/Xpview.php(164): Fossology\Lib\Dao\CopyrightDao->getDecisions('ecc_decision', '16 in /usr/local/share/fossology/lib/php/Db/DbManager.php on line 140
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created issue #1191
No description provided.