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

Kotlin: PFI Allowlist #1208

Merged
merged 3 commits into from
Feb 6, 2024
Merged

Kotlin: PFI Allowlist #1208

merged 3 commits into from
Feb 6, 2024

Conversation

angiejones
Copy link
Member

@angiejones angiejones commented Feb 6, 2024

What type of PR is this? (check all applicable)

  • πŸ“ Documentation Update
  • πŸ§‘β€πŸ’» Code Snippet
  • πŸ§ͺ Tests

Description

  • Added Kotlin code snippet to determine if a PFI is part of the tbDEX network
  • Added test for JS snippet
  • Added test for Kotlin snippet
  • Rearranged test arguments to run browser tests last

Direct link to deploy preview

https://deploy-preview-1208--tbd-website-developer.netlify.app/docs/tbdex/wallet/allowlist-pfis

Mobile & Desktop Screenshots/Recordings

image

Added code snippets?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ readme
  • πŸ“œ contributing.md
  • πŸ““ general documentation
  • πŸ™… no documentation needed

What gif best describes this PR or how it makes you feel?


Copy link

codesandbox bot commented Feb 6, 2024

Review or Edit in CodeSandbox

Open the branch in Web Editor β€’ VS Code β€’ Insiders

Open Preview

Copy link

netlify bot commented Feb 6, 2024

βœ… Deploy Preview for tbd-website-developer ready!

Name Link
πŸ”¨ Latest commit 0ba978c
πŸ” Latest deploy log https://app.netlify.com/sites/tbd-website-developer/deploys/65c2861c7242280008442985
😎 Deploy Preview https://deploy-preview-1208--tbd-website-developer.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -1,7 +1,14 @@
---
title: Allowlisting PFIs
hide_title: true
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we want to show title, otherwise the language switcher goes above the title and it looks kind awkward

Copy link
Member Author

Choose a reason for hiding this comment

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

we want it above the title. you think it looks weird? i thought it looked weird inline with content

class PfiAllowListTest {

@Test
fun `check if DID has PFI service`() {
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 have all this setup that we can use from another test file, and then just add this snippet in? Or do we have to duplicate this code?

Copy link
Member Author

Choose a reason for hiding this comment

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

i think we may be able to once @dayhaysoos adds his changes

@angiejones angiejones merged commit aa52e4a into main Feb 6, 2024
8 checks passed
@angiejones angiejones deleted the allowlist-kotlin branch February 6, 2024 20:03
blackgirlbytes pushed a commit that referenced this pull request Feb 7, 2024
* Kotlin: PFI Allowlist

* dont publish test dids

* ocd
acekyd pushed a commit that referenced this pull request Feb 12, 2024
* Kotlin: PFI Allowlist

* dont publish test dids

* ocd
acekyd added a commit that referenced this pull request Feb 20, 2024
* Add DidJwk and update other DID methods

* Issue #1197 - Add tbdex-kt dependencies (PR #1198)

* Issue #1197 - Add tbdex-kt dependencies to Kotlin TestSuite

With a WHOLE LOT of Dark Arts Evil Nonsense to make it work:

* SNAPSHOT dependency
* Addition of a SNAPSHOTs repo
* dependencyManagement to force version resolution

This may unblock us temporarily but will not work sustainably. The SNAPSHOT dependency will go away and due to version changes from upstream projects the dependencyManagement guards will need to be updated with them.

* nuxt transpile error doc (#1200)

* Kotlin: PFI Allowlist (#1208)

* Kotlin: PFI Allowlist

* dont publish test dids

* ocd

* Added Kotlin Shnips for PEX (#1199)

* kotlin shnips

* adding new line

* kotlin shnip wasnt generating

* removing extra code snippet

* enabling switch content

* adding clarity for presentation submission with Kotlin

* showing language switcher at the top

* adding back title

* adding back title

* hardcode imports

* make verifiable presentation more obvious

* put language switcher at the top

* remove unnnecessary import

* possible note for missing method

* PR #1199 - Fix jackson.core to a more compatible version

* handle all imports with model.*

* add in as snippet

---------

Co-authored-by: Andrew Lee Rubinger <alr@alrubinger.com>

* Removing sidebar link to JS API Guide (#1211)

* Issue #1197 - Update to locked tbdex-kt:0.9.0-beta off former SNAPSHOT

* add replyTo option for RFQs (#1207)

* add replyTo option for RFQs

* Update site/docs/tbdex/wallet/send-rfq.mdx

Co-authored-by: Angie Jones <jones.angie@gmail.com>

---------

Co-authored-by: Angie Jones <jones.angie@gmail.com>

* Fan Club VC with Kotlin snippets (#1212)

* Fan Club VC with Kotlin snippets

* wrapping in a try catch

* OSS Project Dashboard: Avoid orange, yellow for badges that don't indicate failure (#1210)

tweak a few badges to avoid yellow, orange colors

this will make failures/warnings more obvious

* Presentation Definition kotlin updates (#1213)

* Presentation Definition kotlin updates

* Fix tests

* removed submission requirements

* aligned validation snippets

---------

Co-authored-by: angiejones <jones.angie@gmail.com>

* Removing console logs (#1217)

* update docs with references for KMS (#1216)

* Add Kotlin Snippets to PFI/Structuring a PFI App  (#1181)

* Use shnip system, still need code snippets for some parts of exchanges and offerings apis pending convo with Jiyoon

* add all snippets

* Update snippet names and use Shnip system

* fixing code

* add Kotlin code snippets

* update js server name

* update tests to run out of new testsuites directories

* renaming kotlin test file

* Update Kotlin code

* Use shnip system, still need code snippets for some parts of exchanges and offerings apis pending convo with Jiyoon

* add all snippets

* Update snippet names and use Shnip system

* fixing code

* add Kotlin code snippets

* update js server name

* update tests to run out of new testsuites directories

* renaming kotlin test file

* Update Kotlin code

* Make io.ktor.server available on the classpath

* Try to fix Kotlin compilation errors

* try to fix build

* conforming title to the rest of the guides on the site

* pushing up some changes, still addressing comments

* separate out Kotlin classes

* fix build issue with package names

* fix build

* update PFI did creation, sync names of sever var

* Apply suggestions from code review

Apply suggestions

Co-authored-by: Angie Jones <jones.angie@gmail.com>

* add imports

* removing dup imports

---------

Co-authored-by: Angie Jones <jones.angie@gmail.com>
Co-authored-by: Andrew Lee Rubinger <alr@alrubinger.com>

* switching to use Shnip in JWT to VC (#1218)

* switching to Shnips in JWT to VC

* add headers

* fix path

* Adding padding on Shnip content (#1219)

* Upgrade to xyz.block:tbdex:0.10.0-beta

* update merge

* PFI/Orders Kotlin Code Snippets (#1220)

* first push for orders page to write snippets

* fix kotlin snippet and imports

* update markdown

* Adding Close Message snippets

* fixed js Close snippet

* address comments to resolve them, still need to test after wiping out most of them

* missing js ordermessage rename

* add language links

---------

Co-authored-by: Rizel Scarlett <rizel@tbd.email>
Co-authored-by: angiejones <jones.angie@gmail.com>

* Mock PFI Servers (#1223)

* Wallet: Get Offerings - js/kt

* added mock server and tests for Kotlin

* test data

* JS mock PFI server and tests

* Publish PFI DIDs used for tbDEX

* Changed PFI example service endpoints (#1224)

* Update DID variable names

* Updating tests and snippets

* added options to DID create

* removing pfi-structure.test.js file, doesnt compile

* tbdex version update

* fixing tests

* remove console.log

* formatting

* removing DidKey example from Create a DID guide

* removing DidKey test

* Update import snippets

* renaming variables for better readability

* update tests

---------

Co-authored-by: Andrew Lee Rubinger <alr@alrubinger.com>
Co-authored-by: Angie Jones <jones.angie@gmail.com>
Co-authored-by: Rizel Scarlett <rizel@tbd.email>
Co-authored-by: Finn <139806439+finn-tbd@users.noreply.github.com>
Co-authored-by: chris-tbd <129119076+chris-tbd@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants