Skip to content

[WIP] NuCypher ConnectNative Firefox Extension #1299

Closed
vepkenez wants to merge 17 commits intonucypher:birdcagefrom
vepkenez:connect-native-demo-cleaned
Closed

[WIP] NuCypher ConnectNative Firefox Extension #1299
vepkenez wants to merge 17 commits intonucypher:birdcagefrom
vepkenez:connect-native-demo-cleaned

Conversation

@vepkenez
Copy link
Contributor

@vepkenez vepkenez commented Sep 5, 2019

  • extracted from Demo and rebased on master
  • An install script!
  • A readme!
  • Status check to tell you if it's installed correctly

requires #1555

@vepkenez vepkenez force-pushed the connect-native-demo-cleaned branch from 7eeee6e to 964487a Compare September 5, 2019 16:53
@codecov
Copy link

codecov bot commented Sep 5, 2019

Codecov Report

❗ No coverage uploaded for pull request base (birdcage@f593b74). Click here to learn what that means.
The diff coverage is 39.02%.

Impacted file tree graph

@@             Coverage Diff             @@
##             birdcage    #1299   +/-   ##
===========================================
  Coverage            ?   82.56%           
===========================================
  Files               ?       73           
  Lines               ?    10579           
  Branches            ?        0           
===========================================
  Hits                ?     8735           
  Misses              ?     1844           
  Partials            ?        0
Impacted Files Coverage Δ
nucypher/network/teachers.py 100% <ø> (ø)
nucypher/cli/stdio.py 0% <0%> (ø)
nucypher/cli/characters/enrico.py 75% <100%> (ø)
nucypher/characters/control/specifications.py 93.22% <100%> (ø)
nucypher/cli/characters/alice.py 73.18% <100%> (ø)
nucypher/cli/characters/bob.py 71.11% <100%> (ø)
nucypher/cli/actions.py 76.27% <94.73%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f593b74...db48bac. Read the comment docs.

@jMyles jMyles added the Bob 👨‍💼 Effects the "Bob" development area label Sep 9, 2019
@KPrasch KPrasch self-requested a review September 11, 2019 16:20
@jMyles jMyles changed the base branch from master to birdcage September 14, 2019 00:41
@jMyles jMyles force-pushed the birdcage branch 2 times, most recently from bc41fe0 to a327baa Compare September 15, 2019 20:40
@tuxxy
Copy link
Contributor

tuxxy commented Sep 18, 2019

What's the status of this PR? What do we need to get it merged?

@michwill
Copy link
Contributor

Looks like putting a required value argument breaks (currently federated) character tests, as well as RPC API applied to federated network.
I've started working on a PR which allows optional arguments in the specs #1366. Perhaps, that's the way to solve. But since this problem was encountered and worked around here, I need to reference!

@michwill
Copy link
Contributor

Well, actually I'm wrong. It works with RPC in general, just some bugs with web RPC in tests

@michwill
Copy link
Contributor

Ok, looks like tests for optional arguments work properly in #1366. I think, if this PR will be rebased on top of that (will need to replace the specs), the character tests will pass

@KPrasch
Copy link
Member

KPrasch commented Oct 1, 2019

Awaiting PR #1366

@KPrasch
Copy link
Member

KPrasch commented Oct 2, 2019

Merged - Rebase needed.

@michwill
Copy link
Contributor

michwill commented Oct 2, 2019

I wonder if rebase will fix the tests, or some touches are required

@vepkenez vepkenez force-pushed the connect-native-demo-cleaned branch from b7d2996 to c16150d Compare October 3, 2019 00:21
@vepkenez
Copy link
Contributor Author

vepkenez commented Oct 3, 2019

rebased. lets see.

@vepkenez
Copy link
Contributor Author

vepkenez commented Oct 3, 2019

also what is "birdcage"?

@michwill
Copy link
Contributor

michwill commented Oct 3, 2019

Character tests pass!

@vepkenez
Copy link
Contributor Author

vepkenez commented Oct 3, 2019

I think this should probably be based over master?

@vepkenez vepkenez changed the base branch from birdcage to master October 3, 2019 00:35
@michwill
Copy link
Contributor

michwill commented Oct 3, 2019

The necessary change with optional arguments is already in master, yes

@vepkenez
Copy link
Contributor Author

vepkenez commented Oct 3, 2019

Yeah, that reduced the "files changed" from ~72 to 16

@vepkenez
Copy link
Contributor Author

vepkenez commented Oct 4, 2019

Ok this PR needs some tests. Some things aren't working for some reason so I'm going to put a [WIP] on it and finish writing tests around --options.

@vepkenez vepkenez changed the title NuCypher ConnectNative Firefox Extension [WIP] NuCypher ConnectNative Firefox Extension Oct 4, 2019
@vepkenez vepkenez force-pushed the connect-native-demo-cleaned branch from 64a1dd8 to 8a22a68 Compare October 6, 2019 23:50
@vepkenez vepkenez changed the base branch from master to birdcage October 23, 2019 13:59
@vepkenez vepkenez changed the title [WIP] NuCypher ConnectNative Firefox Extension NuCypher ConnectNative Firefox Extension Nov 6, 2019
@KPrasch
Copy link
Member

KPrasch commented Nov 14, 2019

Installation scripts work, however it looks like the --options flag didn't make it into the codebase, leading to result: Usage: nucypher-cli status [OPTIONS] ACTION Try "nucypher-cli status --help" for help. Error: no such option: --options

@vepkenez
Copy link
Contributor Author

@KPrasch yes I think the major CLI refactor which happened after this was all done is necessitating some re-working of this.

this_os = platform.system()
home = expanduser("~")

stdio_cli = shutil.which('nucypher-stdio-receiver')
Copy link
Contributor

Choose a reason for hiding this comment

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

This is neat.


@click.command()
@click.argument('action')
@click.option('--options', help="Export JSON type schema", is_flag=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

The name of this option and the help don't really help me understand either here.


@click.command()
@click.argument('action')
@click.option('--options', help="Export JSON type schema", is_flag=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same critique here, too.

@KPrasch
Copy link
Member

KPrasch commented Dec 3, 2019

Continuing the above dialog - How do we want to proceed with this PR?

@michwill
Copy link
Contributor

michwill commented Dec 3, 2019

There are some conflicts but... Doesn't seem to be breaking anything, so why not merge if those are fixed?

@vepkenez
Copy link
Contributor Author

vepkenez commented Dec 4, 2019

I think this PR will need a bit of work to adapt it to some of the CLI changes of late, but after that it will work better and will cover more functionality than it originally did when this was opened.

@KPrasch KPrasch changed the title NuCypher ConnectNative Firefox Extension [WIP] NuCypher ConnectNative Firefox Extension Jan 6, 2020
@jMyles jMyles force-pushed the birdcage branch 5 times, most recently from 19e2bf8 to c7ee2e1 Compare January 16, 2020 00:48
@jMyles jMyles force-pushed the birdcage branch 3 times, most recently from b6e6fce to 5587b37 Compare February 2, 2020 11:23
@jMyles jMyles force-pushed the birdcage branch 2 times, most recently from 1fc797c to c525ba0 Compare February 8, 2020 12:27
@vepkenez vepkenez closed this Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bob 👨‍💼 Effects the "Bob" development area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants