Skip to content
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

[KED-824] Adopt a new JSON format #2

Merged
merged 9 commits into from
Jul 15, 2019
Merged

[KED-824] Adopt a new JSON format #2

merged 9 commits into from
Jul 15, 2019

Conversation

tolomea
Copy link
Contributor

@tolomea tolomea commented Jun 26, 2019

Notice

  • I acknowledge and agree that, by checking this box and clicking “Submit Pull Request”:

  • I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.

  • I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorised to submit this contribution on behalf of the original creator(s) or their licensees.

  • I certify that the use of this contribution as authorised by the Apache 2.0 license does not violate the intellectual property rights of anyone else.

Motivation and Context

Why was this PR created?

How has this been tested?

What testing strategies have you used?

Checklist

  • Read the contributing guidelines
  • Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • Updated the documentation to reflect the code changes
  • Added new entries to the RELEASE.md file
  • Added tests to cover my changes
  • Assigned myself to the PR
  • Added Type label to the PR

Copy link
Member

@idanov idanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -21,7 +22,7 @@ def root():


@app.route("/logs/nodes.json")
def nodes():
def nodes_old():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we change the name to something like:

Suggested change
def nodes_old():
def nodes_deprecated():

)
all_tags.update(node.tags)
for data_set in node.inputs:
namespace = data_set.split("@")[0]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the term namespace here the correct one? WDYT @LorenaBalanQB ?

@@ -10,12 +10,9 @@

from kedro_viz import server

EXPECTED_PIPELINE_DATA = [
EXPECTED_PIPELINE_DATA_OLD = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⬆️ Same as the comment for nodes_old.

@@ -49,6 +43,150 @@
]


EXPECTED_PIPELINE_DATA = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to come up with a more minimalistic test case in order to be easier to change later?

@@ -146,9 +293,17 @@ def test_root_endpoint(client):
assert "Kedro Viz" in response.data.decode()


def test_nodes_endpoint(client):
def test_old_nodes_endpoint(client):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⬆️

@idanov idanov changed the title [KED-824] New JSON format [KED-824] Adopt a new JSON format Jul 11, 2019
Copy link
Contributor

@921kiyo 921kiyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I left some comments. Could you please update PR context and tick the box?

@@ -21,7 +22,7 @@ def root():


@app.route("/logs/nodes.json")
def nodes():
def nodes_deprecated():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to throw deprecation warning for this in case users are confused between /api/nodes.json and /logs/nodes.json?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

users don't use this, the JS does, retaining the old one is purely so the Python and JS doesn't have to merge at the same time

parts = [n[0].upper() + n[1:] for n in name.split()]
return " ".join(parts)

pipeline = get_project_context("create_pipeline")()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would happen if the passed pipeline is broken? Would it fail somewhere inside this function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's up to the Pipeline constructor to ensure the constructed pipeline is valid

@richardwestenra richardwestenra merged commit 305ca10 into develop Jul 15, 2019
@richardwestenra richardwestenra deleted the new_json branch July 15, 2019 15:18
ravi-kumar-pilla added a commit that referenced this pull request Aug 21, 2023
* Automating Release process (#1)

* v6.3.6

* Revert "v6.3.6"

This reverts commit 5ffe696.

* v6.3.5

* testing release workflow-1

* testing release workflow-1

* testing release workflow-1

* Release/testing (#2)

* v6.3.6

* Revert "v6.3.6"

This reverts commit 5ffe696.

* v6.3.5

* testing release workflow-1

* testing release workflow-1

* testing release workflow-1

* testing release workflow-1

* Release/testing (#3)

* v6.3.6

* Revert "v6.3.6"

This reverts commit 5ffe696.

* v6.3.5

* testing release workflow-1

* testing release workflow-1

* testing release workflow-1

* testing release workflow-1

* final draft

* update workflow config

* Revert "Release/testing (#3)"

This reverts commit d54180d.

* merging main

* reverting changes to main

* final change to extract release notes

* update contributing guide

* modify Release doc

* modify release guide and add release branch condition

* fix PR comments
SajidAlamQB added a commit that referenced this pull request Jul 8, 2024
Signed-off-by: Sajid Alam <[email protected]>
SajidAlamQB added a commit that referenced this pull request Jul 10, 2024
* isPrettyName set default to false

Signed-off-by: Sajid Alam <[email protected]>

* debug

Signed-off-by: Sajid Alam <[email protected]>

* Update config.js

Signed-off-by: Sajid Alam <[email protected]>

* Update config.js

Signed-off-by: Sajid Alam <[email protected]>

* Update app.test.js

Signed-off-by: Sajid Alam <[email protected]>

* Update app.test.js

Signed-off-by: Sajid Alam <[email protected]>

* replace space with underscore

Signed-off-by: Sajid Alam <[email protected]>

* fix tests when pretty name is off by default

Signed-off-by: Sajid Alam <[email protected]>

* fix

Signed-off-by: Sajid Alam <[email protected]>

* Update index.js

Signed-off-by: Sajid Alam <[email protected]>

* more fixes

Signed-off-by: Sajid Alam <[email protected]>

* fix some failed tests that are related to the prettyName is off by default

Signed-off-by: Huong Nguyen <huongg1409@gmail>

* Add toLowerCase to some of the tests

Signed-off-by: Huong Nguyen <huongg1409@gmail>

* Update app.test.js

Signed-off-by: Sajid Alam <[email protected]>

* add cypress custom command to enable pretty name

Signed-off-by: Sajid Alam <[email protected]>

* Update commands.js

Signed-off-by: Sajid Alam <[email protected]>

* Update commands.js

Signed-off-by: Sajid Alam <[email protected]>

* Update global-toolbar.cy.js

Signed-off-by: Sajid Alam <[email protected]>

* beforeEach for isPrettyName added

Signed-off-by: Jitendra Gundaniya <[email protected]>

* menu test fix

Signed-off-by: Jitendra Gundaniya <[email protected]>

* Update experiment-tracking.cy.js

Signed-off-by: Sajid Alam <[email protected]>

* attempt #2

Signed-off-by: Sajid Alam <[email protected]>

* attempt 3

Signed-off-by: Sajid Alam <[email protected]>

* Test fix

Signed-off-by: Jitendra Gundaniya <[email protected]>

* Update experiment-tracking.cy.js

Signed-off-by: Sajid Alam <[email protected]>

* revert experiment tracking changes

Signed-off-by: Sajid Alam <[email protected]>

* Update experiment-tracking.cy.js

Signed-off-by: Sajid Alam <[email protected]>

* removed enablePrettyNames for exp tracking

Signed-off-by: Jitendra Gundaniya <[email protected]>

* test fix

Signed-off-by: Jitendra Gundaniya <[email protected]>

* remove redundant enableprettynames from several tests

Signed-off-by: Sajid Alam <[email protected]>

* revert removal of enableprettynames for several tests

Signed-off-by: Sajid Alam <[email protected]>

---------

Signed-off-by: Sajid Alam <[email protected]>
Signed-off-by: Huong Nguyen <huongg1409@gmail>
Signed-off-by: Jitendra Gundaniya <[email protected]>
Co-authored-by: Huong Nguyen <huongg1409@gmail>
Co-authored-by: Jitendra Gundaniya <[email protected]>
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.

4 participants