profile
viewpoint
William Kapke williamkapke Technologist San Francisco https://twitter.com/williamkapke Former: Node.js Board of Directors, @Tinder, @myspace

nodejs/TSC 253

The Node.js Technical Steering Committee

nodejs/github-bot 201

@nodejs-github-bot's heart and soul

nodejs/community-committee 199

The Node.js Community Committee (aka CommComm)

williamkapke/bson-objectid 131

Construct ObjectIDs without the mongodb driver or bson module

nodejs/board 52

The Node Foundation Board of Directors

nodejs/user-feedback 52

Node.js User Feedback Initiative

gatepay/FedACHdir 10

https://www.fededirectory.frb.org/FedACHdir.txt

williamkapke/amazon-drive 5

A Node.js client for Amazon Drive

williamkapke/allow 3

define and validate objects using a propex

williamkapke/bndlr 3

Static Content Bundler

pull request commentwilliamkapke/mongo-mock

update sift to v11.1.8 - Fixes #123

Done! Thanks for the reminder 👍

williamkapke

comment created time in 2 months

push eventwilliamkapke/mongo-mock

William Kapke

commit sha 60af4dbbd661ec7749f143192332b6f19523dda1

Merge pull request #124 from williamkapke/sift-11.1.8 update sift to v11.1.8 - Fixes #123

view details

William Kapke

commit sha 469f5465c42dd0a224b3d6c7c2fa4f1f2cb64e40

Merge remote-tracking branch 'origin/master'

view details

push time in 2 months

push eventwilliamkapke/mongo-mock

William Kapke

commit sha 7af98f69b1a64fa15d0d045251193f570c75b6f8

update sift to v11.1.8

view details

William Kapke

commit sha 02fa5cfd1ba052e4ac84097cba0a5fe22f68b1f3

bump major to v4.0.0 since the sift change is big

view details

William Kapke

commit sha 5591b065415e594812f1097fff04bc7fda2705c4

Added $exists tests from #123. Fixes #123.

view details

William Kapke

commit sha abe104f04b90495eeaeae5c64cea1ca12b10f89d

Merge branch 'master' into sift-11.1.8

view details

William Kapke

commit sha debeb2b41f1907254ef1b23e4de41fcc556a9904

Merge pull request #124 from williamkapke/sift-11.1.8 update sift to v11.1.8 - Fixes #123

view details

push time in 2 months

PR closed williamkapke/mongo-mock

Override $exists operator to better match MongoDB behavior

This override of the $exists operator adds support for properties with a value of null being considered as existing, as expected.

The version of sift 3.1.1 currently used as an incorrect implementation. This is fixed in version 7+ I think, but not possible to upgrade sift beyond version 3 (I think) in mongo-mock, therefore overriding the operator.

I also added 3 unit tests.

See https://github.com/crcn/sift.js/issues/146 for more details.

Closes #122

+53 -0

1 comment

2 changed files

TanukiSharp

pr closed time in 2 months

PR merged williamkapke/mongo-mock

update sift to v11.1.8 - Fixes #123

Let's get up-to-date with sift.js!

+62 -9

1 comment

5 changed files

williamkapke

pr closed time in 2 months

push eventwilliamkapke/mongo-mock

Sebastien ROBERT

commit sha 114c8a92f990e20cc62c82454ef4fdb7b5829933

Avoid throw when update without upsert and no docs matching

view details

Sebastien ROBERT

commit sha 28c2fcd8c8b2c6d65552bb4f5b0a4e24d968ce6d

Fixed null check in unit test

view details

William Kapke

commit sha 92ef5de333a98e1549035c8188ca9a934d616094

Merge pull request #121 from TanukiSharp/fix_update_no_docs Allow update without upsert when no docs match

view details

William Kapke

commit sha 075991a6511d781b3b41a7524e8aebffa0d919d1

v3.9.1

view details

William Kapke

commit sha abe104f04b90495eeaeae5c64cea1ca12b10f89d

Merge branch 'master' into sift-11.1.8

view details

push time in 2 months

push eventwilliamkapke/mongo-mock

William Kapke

commit sha 075991a6511d781b3b41a7524e8aebffa0d919d1

v3.9.1

view details

push time in 2 months

push eventwilliamkapke/mongo-mock

Sebastien ROBERT

commit sha 114c8a92f990e20cc62c82454ef4fdb7b5829933

Avoid throw when update without upsert and no docs matching

view details

Sebastien ROBERT

commit sha 28c2fcd8c8b2c6d65552bb4f5b0a4e24d968ce6d

Fixed null check in unit test

view details

William Kapke

commit sha 92ef5de333a98e1549035c8188ca9a934d616094

Merge pull request #121 from TanukiSharp/fix_update_no_docs Allow update without upsert when no docs match

view details

push time in 2 months

PR merged williamkapke/mongo-mock

Allow update without upsert when no docs match

I added a unit test that indeed fails without the fix, Since I'm not sure how to check against null with mocha, I simply used an inequality and an throw.

Closes #107

Note that this may also close issue 108 (#108) as it seems to be a duplicate.

+10 -1

1 comment

2 changed files

TanukiSharp

pr closed time in 2 months

issue closedwilliamkapke/mongo-mock

modify should catch the ModifyJsError and return an empty row

Currently if there is a filter on findOneAndUpdate and returning a document there is no matching row the modify function does not catch an error for asyncish.

ModifyJsError: cannot use the part 'colName' to traverse undefined

This should have instead returned an empty row for the update.

closed time in 2 months

Downchuck

pull request commentwilliamkapke/mongo-mock

Override $exists operator to better match MongoDB behavior

Thanks for this! I looked in to the sift changes to see if we can update to fix the problem. They changed the API around and it was confusing-- but I figured it out. See #124

TanukiSharp

comment created time in 2 months

push eventwilliamkapke/mongo-mock

William Kapke

commit sha 5591b065415e594812f1097fff04bc7fda2705c4

Added $exists tests from #123. Fixes #123.

view details

push time in 2 months

push eventwilliamkapke/mongo-mock

William Kapke

commit sha 02fa5cfd1ba052e4ac84097cba0a5fe22f68b1f3

bump major to v4.0.0 since the sift change is big

view details

push time in 2 months

PR opened williamkapke/mongo-mock

update sift to v11.1.8

Let's get up-to-date with sift.js!

+14 -8

0 comment

4 changed files

pr created time in 2 months

create barnchwilliamkapke/mongo-mock

branch : sift-11.1.8

created branch time in 2 months

issue closedSitecore/docker-images

Cannot get docker-compose.xm.jss.yml to run

I'm trying to get docker-compose.xm.jss.yml running but hit this error:

PS C:\Users\williamkapke\Downloads\docker-images\windows\tests\9.3.x> docker-compose --file .\docker-compose.xm.jss.yml up                                                                                                             Pulling sql (sitecore-xm-jss-sqldev:9.3.0-windowsservercore-ltsc2019)...
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

Continue with the new image? [yN]y
Pulling sql (sitecore-xm-jss-sqldev:9.3.0-windowsservercore-ltsc2019)...
ERROR: pull access denied for sitecore-xm-jss-sqldev, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
PS C:\Users\williamkapke\Downloads\docker-images\windows\tests\9.3.x> 

docker-compose.xm.jss.yml

  • Brand new Windows 10 Pro PC
  • Very few things installed on it (NPP, Chrome, Docker Desktop)

Other Notes:

  • docker-compose.xm.yml (non-jss) runs and I can load/view Sitecore CM, and CD pages.
  • Directions in readme were followed to get to this point

docker images output:

PS C:\Users\williamkapke\Downloads\docker-images\windows\tests\9.3.x> docker images                                                                                                                                                    REPOSITORY                                   TAG                                IMAGE ID            CREATED             SIZE
sitecore-xp-xconnect                         9.3.0-windowsservercore-ltsc2019   fd8882eaf468        44 minutes ago      8.34GB
<none>                                       <none>                             8c684e9302e5        46 minutes ago      8.53GB
sitecore-xp-identity                         9.3.0-windowsservercore-ltsc2019   a037fad7d299        47 minutes ago      8.96GB
<none>                                       <none>                             5a385919be93        52 minutes ago      8.39GB
sitecore-xp-xconnect-processingengine        9.3.0-windowsservercore-ltsc2019   a7a0b1c4a95a        53 minutes ago      7.81GB
<none>                                       <none>                             d05d5b88f208        55 minutes ago      7.95GB
sitecore-xm-cm                               9.3.0-windowsservercore-ltsc2019   414c4c1393ed        56 minutes ago      9.21GB
<none>                                       <none>                             71d04379a0a7        About an hour ago   9.31GB
sitecore-xp-standalone                       9.3.0-windowsservercore-ltsc2019   c7845b5d6f8c        About an hour ago   9.35GB
<none>                                       <none>                             b08830027e40        About an hour ago   9.52GB
sitecore-xp-xconnect-automationengine        9.3.0-windowsservercore-ltsc2019   b5dc5a45f80b        About an hour ago   7.81GB
<none>                                       <none>                             b8d6554e7ec1        About an hour ago   7.95GB
sitecore-xm-sqldev                           9.3.0-windowsservercore-ltsc2019   50341d92fd8a        About an hour ago   6.73GB
sitecore-xp-xconnect-indexworker             9.3.0-windowsservercore-ltsc2019   c70a216a58c9        About an hour ago   7.84GB
<none>                                       <none>                             ecb95077bbca        About an hour ago   7.97GB
sitecore-xm-cd                               9.3.0-windowsservercore-ltsc2019   073a2f66ea29        About an hour ago   9.21GB
<none>                                       <none>                             fc9042c47d73        2 hours ago         9.31GB
sitecore-xp-cd                               9.3.0-windowsservercore-ltsc2019   eb302c0fdce5        2 hours ago         9.35GB
<none>                                       <none>                             2eb2a79ef657        2 hours ago         9.52GB
sitecore-assets                              9.3.0-nanoserver-1809              e70e7f5ae3ef        2 hours ago         3.16GB
<none>                                       <none>                             56557866f9f3        2 hours ago         10.7GB
sitecore-xm-solr                             9.3.0-nanoserver-1809              dcdd127bcb63        6 days ago          661MB
<none>                                       <none>                             87408c6c9bf4        6 days ago          5.25GB
sitecore-xp-solr                             9.3.0-nanoserver-1809              21da1ee1e3b2        6 days ago          663MB
<none>                                       <none>                             af4e5199df86        6 days ago          5.25GB
<none>                                       <none>                             067544e5fcb5        6 days ago          8.34GB
<none>                                       <none>                             9c41bc0cb982        6 days ago          8.53GB
sitecore-xp-sqldev                           9.3.0-windowsservercore-ltsc2019   507bac5b107a        6 days ago          7.14GB
<none>                                       <none>                             4798683263d2        6 days ago          8.96GB
<none>                                       <none>                             34cef321186f        6 days ago          8.39GB
<none>                                       <none>                             6b23e51350f4        6 days ago          7.81GB
<none>                                       <none>                             a589c544de87        6 days ago          7.95GB
<none>                                       <none>                             00de2e9e10e6        6 days ago          9.21GB
<none>                                       <none>                             ff7c882cd103        6 days ago          9.31GB
<none>                                       <none>                             51e5b9e426f3        6 days ago          9.35GB
<none>                                       <none>                             60b37a293e60        6 days ago          9.52GB
<none>                                       <none>                             1ac7ad1d92c6        6 days ago          7.81GB
<none>                                       <none>                             7206de8631c6        6 days ago          7.95GB
<none>                                       <none>                             377d2f6dd9d9        6 days ago          6.73GB
<none>                                       <none>                             4d07f72ffdef        6 days ago          7.84GB
<none>                                       <none>                             efa551d9c3a4        6 days ago          7.97GB
<none>                                       <none>                             c9d83184eb98        6 days ago          9.21GB
<none>                                       <none>                             ed38f34cdda6        6 days ago          9.31GB
<none>                                       <none>                             4af87b1fccfa        6 days ago          9.35GB
<none>                                       <none>                             8ba793b93118        6 days ago          9.52GB
sitecore-openjdk                             8-nanoserver-1809                  40c9cf9cb9f4        6 days ago          460MB
<none>                                       <none>                             c48aebd03084        6 days ago          5.18GB
<none>                                       <none>                             c7148148c5f8        6 days ago          3.16GB
<none>                                       <none>                             1fb9ef1a8b65        6 days ago          10.7GB
sitecore-certificates                        latest-nanoserver-1809             9aba23e8e245        6 days ago          251MB
<none>                                       <none>                             63d28d607c65        6 days ago          4.87GB
mssql-developer                              2017-windowsservercore-ltsc2019    8ae9f4950349        6 days ago          5.96GB
mcr.microsoft.com/dotnet/framework/aspnet    4.8-windowsservercore-ltsc2019     a82e61390cbd        7 days ago          8.06GB
mcr.microsoft.com/dotnet/framework/runtime   4.8-windowsservercore-ltsc2019     9777e29ccf4d        7 days ago          7.65GB
mcr.microsoft.com/windows/servercore         ltsc2019                           81094f2483ae        9 days ago          4.84GB
mcr.microsoft.com/windows/nanoserver         1809                               e9adad2a1082        10 days ago         251MB

ls \packages

Sitecore 9.3.0 rev. 003498 (WDP XM1 packages).zip
Sitecore 9.3.0 rev. 003498 (WDP XP0 packages).zip
Sitecore 9.3.0 rev. 003498 (WDP XP1 packages).zip
Sitecore Experience Accelerator 9.3.0.2589 CD.scwdp.zip
Sitecore Experience Accelerator 9.3.0.2589.scwdp.zip
Sitecore Experience Accelerator XM 9.3.0.2589 CD.scwdp.zip
Sitecore Experience Accelerator XM 9.3.0.2589.scwdp.zip
Sitecore JavaScript Services Server for Sitecore 9.3 XM 13.0.0 rev. 190924 CD.scwdp.zip
Sitecore JavaScript Services Server for Sitecore 9.3 XM 13.0.0 rev. 190924.scwdp.zip
Sitecore JavaScript Services Server for Sitecore 9.3 XP 13.0.0 rev. 190924 CD.scwdp.zip
Sitecore JavaScript Services Server for Sitecore 9.3 XP 13.0.0 rev. 190924.scwdp.zip
Sitecore Publishing Module 9.3.0.0 rev. r00546.2197.scwdp.zip
Sitecore Publishing Service 4.2.0-win-x64.zip
Sitecore.Commerce.WDP.2020.01-5.0.145.zip
Sitecore.PowerShell.Extensions-6.0.scwdp.zip

LMK what other information is needed. Thanks!

closed time in 3 months

williamkapke

issue commentSitecore/docker-images

Cannot get docker-compose.xm.jss.yml to run

Indeed @gayankanishka ! That allowed it to run. I'm not too sure how tell if JSS is actually working or not-- we're just getting started trying to figure this JSS stuff out. But- the docker images are running and accessible. Thank you!

williamkapke

comment created time in 3 months

issue openedSitecore/docker-images

Cannot get docker-compose.xm.jss.yml to run

I'm trying to get docker-compose.xm.jss.yml running but hit this error:

PS C:\Users\williamkapke\Downloads\docker-images\windows\tests\9.3.x> docker-compose --file .\docker-compose.xm.jss.yml up                                                                                                             Pulling sql (sitecore-xm-jss-sqldev:9.3.0-windowsservercore-ltsc2019)...
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

Continue with the new image? [yN]y
Pulling sql (sitecore-xm-jss-sqldev:9.3.0-windowsservercore-ltsc2019)...
ERROR: pull access denied for sitecore-xm-jss-sqldev, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
PS C:\Users\williamkapke\Downloads\docker-images\windows\tests\9.3.x> 

docker-compose.xm.jss.yml

  • Brand new Windows 10 Pro PC
  • Very few things installed on it (NPP, Chrome, Docker Desktop)

Other Notes:

  • docker-compose.xm.yml (non-jss) runs and I can load/view Sitecore CM, and CD pages.
  • Directions in readme were followed to get to this point

docker images output:

PS C:\Users\williamkapke\Downloads\docker-images\windows\tests\9.3.x> docker images                                                                                                                                                    REPOSITORY                                   TAG                                IMAGE ID            CREATED             SIZE
sitecore-xp-xconnect                         9.3.0-windowsservercore-ltsc2019   fd8882eaf468        44 minutes ago      8.34GB
<none>                                       <none>                             8c684e9302e5        46 minutes ago      8.53GB
sitecore-xp-identity                         9.3.0-windowsservercore-ltsc2019   a037fad7d299        47 minutes ago      8.96GB
<none>                                       <none>                             5a385919be93        52 minutes ago      8.39GB
sitecore-xp-xconnect-processingengine        9.3.0-windowsservercore-ltsc2019   a7a0b1c4a95a        53 minutes ago      7.81GB
<none>                                       <none>                             d05d5b88f208        55 minutes ago      7.95GB
sitecore-xm-cm                               9.3.0-windowsservercore-ltsc2019   414c4c1393ed        56 minutes ago      9.21GB
<none>                                       <none>                             71d04379a0a7        About an hour ago   9.31GB
sitecore-xp-standalone                       9.3.0-windowsservercore-ltsc2019   c7845b5d6f8c        About an hour ago   9.35GB
<none>                                       <none>                             b08830027e40        About an hour ago   9.52GB
sitecore-xp-xconnect-automationengine        9.3.0-windowsservercore-ltsc2019   b5dc5a45f80b        About an hour ago   7.81GB
<none>                                       <none>                             b8d6554e7ec1        About an hour ago   7.95GB
sitecore-xm-sqldev                           9.3.0-windowsservercore-ltsc2019   50341d92fd8a        About an hour ago   6.73GB
sitecore-xp-xconnect-indexworker             9.3.0-windowsservercore-ltsc2019   c70a216a58c9        About an hour ago   7.84GB
<none>                                       <none>                             ecb95077bbca        About an hour ago   7.97GB
sitecore-xm-cd                               9.3.0-windowsservercore-ltsc2019   073a2f66ea29        About an hour ago   9.21GB
<none>                                       <none>                             fc9042c47d73        2 hours ago         9.31GB
sitecore-xp-cd                               9.3.0-windowsservercore-ltsc2019   eb302c0fdce5        2 hours ago         9.35GB
<none>                                       <none>                             2eb2a79ef657        2 hours ago         9.52GB
sitecore-assets                              9.3.0-nanoserver-1809              e70e7f5ae3ef        2 hours ago         3.16GB
<none>                                       <none>                             56557866f9f3        2 hours ago         10.7GB
sitecore-xm-solr                             9.3.0-nanoserver-1809              dcdd127bcb63        6 days ago          661MB
<none>                                       <none>                             87408c6c9bf4        6 days ago          5.25GB
sitecore-xp-solr                             9.3.0-nanoserver-1809              21da1ee1e3b2        6 days ago          663MB
<none>                                       <none>                             af4e5199df86        6 days ago          5.25GB
<none>                                       <none>                             067544e5fcb5        6 days ago          8.34GB
<none>                                       <none>                             9c41bc0cb982        6 days ago          8.53GB
sitecore-xp-sqldev                           9.3.0-windowsservercore-ltsc2019   507bac5b107a        6 days ago          7.14GB
<none>                                       <none>                             4798683263d2        6 days ago          8.96GB
<none>                                       <none>                             34cef321186f        6 days ago          8.39GB
<none>                                       <none>                             6b23e51350f4        6 days ago          7.81GB
<none>                                       <none>                             a589c544de87        6 days ago          7.95GB
<none>                                       <none>                             00de2e9e10e6        6 days ago          9.21GB
<none>                                       <none>                             ff7c882cd103        6 days ago          9.31GB
<none>                                       <none>                             51e5b9e426f3        6 days ago          9.35GB
<none>                                       <none>                             60b37a293e60        6 days ago          9.52GB
<none>                                       <none>                             1ac7ad1d92c6        6 days ago          7.81GB
<none>                                       <none>                             7206de8631c6        6 days ago          7.95GB
<none>                                       <none>                             377d2f6dd9d9        6 days ago          6.73GB
<none>                                       <none>                             4d07f72ffdef        6 days ago          7.84GB
<none>                                       <none>                             efa551d9c3a4        6 days ago          7.97GB
<none>                                       <none>                             c9d83184eb98        6 days ago          9.21GB
<none>                                       <none>                             ed38f34cdda6        6 days ago          9.31GB
<none>                                       <none>                             4af87b1fccfa        6 days ago          9.35GB
<none>                                       <none>                             8ba793b93118        6 days ago          9.52GB
sitecore-openjdk                             8-nanoserver-1809                  40c9cf9cb9f4        6 days ago          460MB
<none>                                       <none>                             c48aebd03084        6 days ago          5.18GB
<none>                                       <none>                             c7148148c5f8        6 days ago          3.16GB
<none>                                       <none>                             1fb9ef1a8b65        6 days ago          10.7GB
sitecore-certificates                        latest-nanoserver-1809             9aba23e8e245        6 days ago          251MB
<none>                                       <none>                             63d28d607c65        6 days ago          4.87GB
mssql-developer                              2017-windowsservercore-ltsc2019    8ae9f4950349        6 days ago          5.96GB
mcr.microsoft.com/dotnet/framework/aspnet    4.8-windowsservercore-ltsc2019     a82e61390cbd        7 days ago          8.06GB
mcr.microsoft.com/dotnet/framework/runtime   4.8-windowsservercore-ltsc2019     9777e29ccf4d        7 days ago          7.65GB
mcr.microsoft.com/windows/servercore         ltsc2019                           81094f2483ae        9 days ago          4.84GB
mcr.microsoft.com/windows/nanoserver         1809                               e9adad2a1082        10 days ago         251MB

ls \packages

Sitecore 9.3.0 rev. 003498 (WDP XM1 packages).zip
Sitecore 9.3.0 rev. 003498 (WDP XP0 packages).zip
Sitecore 9.3.0 rev. 003498 (WDP XP1 packages).zip
Sitecore Experience Accelerator 9.3.0.2589 CD.scwdp.zip
Sitecore Experience Accelerator 9.3.0.2589.scwdp.zip
Sitecore Experience Accelerator XM 9.3.0.2589 CD.scwdp.zip
Sitecore Experience Accelerator XM 9.3.0.2589.scwdp.zip
Sitecore JavaScript Services Server for Sitecore 9.3 XM 13.0.0 rev. 190924 CD.scwdp.zip
Sitecore JavaScript Services Server for Sitecore 9.3 XM 13.0.0 rev. 190924.scwdp.zip
Sitecore JavaScript Services Server for Sitecore 9.3 XP 13.0.0 rev. 190924 CD.scwdp.zip
Sitecore JavaScript Services Server for Sitecore 9.3 XP 13.0.0 rev. 190924.scwdp.zip
Sitecore Publishing Module 9.3.0.0 rev. r00546.2197.scwdp.zip
Sitecore Publishing Service 4.2.0-win-x64.zip
Sitecore.Commerce.WDP.2020.01-5.0.145.zip
Sitecore.PowerShell.Extensions-6.0.scwdp.zip

LMK what other information is needed. Thanks!

created time in 3 months

more