Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.
Merged
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
20 changes: 8 additions & 12 deletions dashboard/dashboard_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,14 @@ def get_package_details(self, p: package.Package):
'latest_version': '0.1.0',
}
"""
# TODO: Will remove after a new build to update the bigquery data.
pkg_name = p.install_name
if p.install_name == 'apache-beam[gcp]':
pkg_name = 'google-cloud-dataflow'
# The package being checked will appear in the dep list, but for
# apache-beam[gcp], the package in dep list will just be apache-beam.
self_dep_name = p.install_name
if '[' in p.install_name:
self_dep_name = p.install_name.split('[')[0]

latest_version = self._package_with_dependency_info[
pkg_name][pkg_name]['latest_version']
p.install_name][self_dep_name]['latest_version']
pairwise_conflict = []

# Initialize the values
Expand All @@ -201,10 +203,7 @@ def get_package_details(self, p: package.Package):
for pair_pkg in configs.PKG_LIST:
check_result = self.get_result(p, package.Package(pair_pkg))
# Get self compatibility status
# TODO: Will remove after a new build to update the bigquery data.
if pair_pkg == 'apache-beam[gcp]':
pair_pkg = 'google-cloud-dataflow'
if pair_pkg == pkg_name:
if pair_pkg == p.install_name:
result['self_conflict'] = True \
if check_result['status_type'] != 'self-success' else False
# Get pairwise compatibility status
Expand Down Expand Up @@ -366,9 +365,6 @@ def main():

package_with_dependency_info = {}
for pkg in configs.PKG_LIST:
# TODO: Will remove after a new build to update the bigquery data.
if pkg == 'apache-beam[gcp]':
pkg = 'google-cloud-dataflow'
dep_info = store.get_dependency_info(pkg)
package_with_dependency_info[pkg] = dep_info

Expand Down