Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions web/api/completly-rebuild-thrift.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/bash

set -e # Exit on any error

echo "Starting CodeChecker Thrift rebuild process..."

# Step 1: Build the API
echo "Step 1: Building API..."
cd "$HOME/codechecker/web/api"
make build

# Step 2: Execute the main rebuild process
echo "Step 2: Executing main rebuild..."
cd "$HOME/codechecker"

# Deactivation of virtual enviroment
echo "Deactivating current environment..."
if command -v deactivate &> /dev/null; then
deactivate 2>/dev/null || true
fi

# Resetting the package-lock.json just in case.
echo "Resetting package-lock.json..."
git checkout master -- "$HOME/codechecker/web/server/vue-cli/package-lock.json"
git reset HEAD "$HOME/codechecker/web/server/vue-cli/package-lock.json"

# Cleaning.
echo "Cleaning previous builds..."
make clean
make clean_venv_dev

# Creating new virtual enviroment.
echo "Creating new virtual environment..."
make venv_dev

echo "Building package..."
make package

# Again just in case.
echo "Activating virtual environment and setting PATH..."
source "$HOME/codechecker/venv_dev/bin/activate"
export PATH="$HOME/codechecker/build/CodeChecker/bin:$PATH"

echo "CodeChecker rebuild completed successfully!"
echo "You can now use CodeChecker commands."
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion web/api/js/codechecker-api-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codechecker-api",
"version": "6.66.0",
"version": "6.67.0",
"description": "Generated node.js compatible API stubs for CodeChecker server.",
"main": "lib",
"homepage": "https://github.com/Ericsson/codechecker",
Expand Down
Binary file modified web/api/py/codechecker_api/dist/codechecker_api.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion web/api/py/codechecker_api/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
with open('README.md', encoding='utf-8', errors="ignore") as f:
long_description = f.read()

api_version = '6.66.0'
api_version = '6.67.0'

setup(
name='codechecker_api',
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion web/api/py/codechecker_api_shared/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
with open('README.md', encoding='utf-8', errors="ignore") as f:
long_description = f.read()

api_version = '6.66.0'
api_version = '6.67.0'

setup(
name='codechecker_api_shared',
Expand Down
46 changes: 46 additions & 0 deletions web/api/report_server.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,12 @@ struct ReportFilter {
23: optional list<ReportStatus> reportStatus, // Specifying the status of the filtered reports.
}

struct FilterPreset {
1: i64 id, // Unique ID of filter preset.
2: string name, // Human readable name of preset.
3: ReportFilter reportFilter // Uniquely configured ReportFilter.
}

struct RunReportCount {
1: i64 runId, // Unique ID of the run.
2: string name, // Human readable name of the run.
Expand Down Expand Up @@ -581,6 +587,40 @@ service codeCheckerDBAccess {
4: optional RunSortMode sortMode)
throws (1: codechecker_api_shared.RequestFailed requestError),

//============================================
// Filter grouping api calls.
//============================================

// Stores the given FilterPreset with the given id
// If the preset exists, it overwrites the name, and all preset values
// if the preset does not exist yet, it creates it with
// if the id is -1 a new preset filter is created
// the filter preset name must be unique.
// An error must be thrown if another preset exists with the same name.
// The encoding of the name must be unicode. (whitespaces allowed?)
// Returns: the id of the modified or created preset, -1 in case of error
// PERMISSION: PRODUCT_ADMIN
i64 storeFilterPreset(1: FilterPreset preset)
throws (1: codechecker_api_shared.RequestFailed requestError);

// Returns the FilterPreset identified by id
// Returns -1 in case there is no preset with the given id
// PERMISSION: PRODUCT_VIEW
FilterPreset getFilterPreset(1: i64 id)
throws (1: codechecker_api_shared.RequestFailed requestError);

// Removes the filterpreset with the given id
// returns the id of the filter preset removed
// and -1 in case of error.
// PERMISSION: PRODUCT_ADMIN
i64 deleteFilterPreset(1: i64 id)
throws (1: codechecker_api_shared.RequestFailed requestError);

// Returns all filter presets stored for the product repository
// PERMISSION: PRODUCT_VIEW
list <FilterPreset> listFilterPreset()
throws (1: codechecker_api_shared.RequestFailed requestError);

// Returns the number of available runs based on the run filter parameter.
// PERMISSION: PRODUCT_VIEW
i64 getRunCount(1: RunFilter runFilter)
Expand Down Expand Up @@ -1143,4 +1183,10 @@ service codeCheckerDBAccess {
bool unsetCleanupPlan(1: i64 cleanupPlanId,
2: list<string> reportHashes)
throws (1: codechecker_api_shared.RequestFailed requestError),

// return name based on mapping based on value and classname.
// PERMISSION: PRODUCT_VIEW
string getNameByValueForFilter(1: string classname,
2: i64 value)
throws (1: codechecker_api_shared.RequestFailed requestError),
}
16 changes: 16 additions & 0 deletions web/client/codechecker_client/helpers/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ def __init__(self, protocol, host, port, uri, session_token=None,
def getRunData(self, run_name_filter, limit, offset, sort_mode):
pass

@thrift_client_call
def storeFilterPreset(self, preset):
pass

@thrift_client_call
def getFilterPreset(self, id):
pass

@thrift_client_call
def deleteFilterPreset(self, id):
pass

@thrift_client_call
def listFilterPreset(self):
pass

@thrift_client_call
def getRunHistory(self, run_ids, limit, offset, run_history_filter):
pass
Expand Down
2 changes: 1 addition & 1 deletion web/codechecker_web/shared/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# The newest supported minor version (value) for each supported major version
# (key) in this particular build.
SUPPORTED_VERSIONS = {
6: 66
6: 67
}

# Used by the client to automatically identify the latest major and minor
Expand Down
Loading