Skip to content

Conversation

@merca
Copy link
Owner

@merca merca commented Oct 15, 2023

This commit adds a new Python script convert.py that converts a .dot file into a graph database. The script uses the pydot library to parse the .dot file and creates a graph object. It then parses the labels of nodes using regular expressions and updates the traversal code accordingly.

The script also loads environment variables using dotenv, establishes a connection with Neo4j using the provided URI, username, and password, and uploads the parsed nodes and relationships to the graph database.

The commit also includes the addition of a sample .dot file in src/stargripcorp.dataplatform.infra.azure/graph.dot.

This commit adds a new Python script `convert.py` that converts a `.dot` file into a graph database. The script uses the `pydot` library to parse the `.dot` file and creates a graph object. It then parses the labels of nodes using regular expressions and updates the traversal code accordingly.

The script also loads environment variables using `dotenv`, establishes a connection with Neo4j using the provided URI, username, and password, and uploads the parsed nodes and relationships to the graph database.

The commit also includes the addition of a sample `.dot` file in `src/stargripcorp.dataplatform.infra.azure/graph.dot`.
@merca merca temporarily deployed to production October 15, 2023 21:09 — with GitHub Actions Inactive
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

Test Results

12 tests   12 ✔️  0s ⏱️
  1 suites    0 💤
  1 files      0

Results for commit 807e937.

@github-actions
Copy link

github-actions bot commented Oct 15, 2023

Test Results

12 tests   12 ✔️  0s ⏱️
  1 suites    0 💤
  1 files      0

Results for commit 807e937.

♻️ This comment has been updated with latest results.

@gitstream-cm
Copy link

gitstream-cm bot commented Oct 15, 2023

🥷 Code experts: no user matched threshold 10

See details

To learn more about /:\ gitStream - Visit our Docs

@codecov
Copy link

codecov bot commented Oct 15, 2023

Codecov Report

All modified lines are covered by tests ✅

❗ No coverage uploaded for pull request base (current@316a1c3). Click here to learn what that means.

Additional details and impacted files
@@            Coverage Diff             @@
##             current      #17   +/-   ##
==========================================
  Coverage           ?   91.42%           
==========================================
  Files              ?        4           
  Lines              ?       70           
  Branches           ?        0           
==========================================
  Hits               ?       64           
  Misses             ?        6           
  Partials           ?        0           
Flag Coverage Δ
unittests 91.42% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pulumi
Copy link

pulumi bot commented Oct 15, 2023

🍹 The Update (preview) for merca/stargripcorp/current was successful.

Resource Changes

    Name               Type                         Operation
~   merca-core-dev-kv  azure-native:keyvault:Vault  update
~   merca-data-dev-kv  azure-native:keyvault:Vault  update

@gitstream-cm
Copy link

gitstream-cm bot commented Oct 15, 2023

Hello merca 👋 Thanks for making your first PR, and welcome to our project!
Our mentor team has automatically been assigned to review this PR and guide you through the process.
Please reach out to that team if you have questions about the next steps.

@merca merca merged commit c4ae681 into current Oct 15, 2023
@merca merca deleted the feature/parse-dot-with-python branch October 15, 2023 21:13
@codacy-production
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for 316a1c31
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (316a1c3) Report Missing Report Missing Report Missing
Head commit (807e937) 70 64 91.43%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#17) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Footnotes

  1. Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants