GithubHelp home page GithubHelp logo

withthegrid / platform-sdk Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 7.18 MB

API client for withthegrid platform

Home Page: https://developer.withthegrid.com

License: MIT License

JavaScript 0.49% TypeScript 99.51%

platform-sdk's People

Contributors

arinono avatar dependabot[bot] avatar everhardt avatar gabrielpadureanu avatar jdbruijn avatar kzavorotna avatar nickdek avatar parkerjohn avatar semantic-release-bot avatar sergiu128 avatar srieding avatar yarkoyarok avatar z841860053 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

johocurtest

platform-sdk's Issues

Git failed to push new release properly

The previous push to production failed to push some refs:


> @withthegrid/[email protected] release
> ts-node -P tsconfig.cjs.json release/

[[8](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:8):52:40 AM] [semantic-release] › ℹ  Running semantic-release version 1[9](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:9).0.2
[8:52:41 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/changelog"
[8:52:41 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/npm"
[8:52:41 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/git"
[8:52:41 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/github"
[8:52:41 AM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[8:52:41 AM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[8:52:41 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/changelog"
[8:52:41 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/npm"
[8:52:41 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/git"
[8:52:41 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/npm"
[8:52:41 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/github"
[8:52:41 AM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/npm"
[8:52:41 AM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/github"
[8:52:41 AM] [semantic-release] › ✔  Loaded plugin "success" from "@semantic-release/github"
[8:52:41 AM] [semantic-release] › ✔  Loaded plugin "fail" from "@semantic-release/github"
[8:52:45 AM] [semantic-release] › ✔  Run automated release from branch main on repository https://github.com/withthegrid/platform-sdk.git
[8:52:45 AM] [semantic-release] › ✔  Allowed to push to the Git repository
[8:52:45 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/changelog"
[8:52:45 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/changelog"
[8:52:45 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/npm"
[8:52:45 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/npm"
[8:52:45 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/git"
[8:52:45 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/git"
[8:52:45 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/github"
[8:52:45 AM] [semantic-release] [@semantic-release/github] › ℹ  Verify GitHub authentication (https://api.github.com)
[8:52:45 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/github"
[8:52:45 AM] [semantic-release] › ℹ  Found git tag v17.42.7 associated with version 17.42.7 on branch main
[8:52:45 AM] [semantic-release] › ℹ  Found 3 commits since last release
[8:52:45 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[8:52:45 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: fix: error in analytics dashboard with quantity fields (#174)
[8:52:45 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is patch
[8:52:45 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: chore(deps): eslint, types/node (#172)
[8:52:45 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[8:52:45 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: #771 - Analytics map widget (#[10](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:10)1)
[8:52:45 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[8:52:45 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analysis of 3 commits complete: patch release
[8:52:45 AM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[8:52:45 AM] [semantic-release] › ℹ  The next release version is 17.42.8
[8:52:45 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[8:52:45 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[8:52:45 AM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/changelog"
[8:52:45 AM] [semantic-release] [@semantic-release/changelog] › ℹ  Update /home/runner/work/platform-sdk/platform-sdk/CHANGELOG.md
[8:52:45 AM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/changelog"
[8:52:45 AM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/npm"
[8:52:45 AM] [semantic-release] [@semantic-release/npm] › ℹ  Write version 17.42.8 to package.json in /home/runner/work/platform-sdk/platform-sdk
v17.42.8
[8:52:45 AM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/npm"
[8:52:45 AM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/git"
[8:52:46 AM] [semantic-release] [@semantic-release/git] › ℹ  Found 3 file(s) to commit
[8:52:47 AM] [semantic-release] [@semantic-release/git] › ℹ  Prepared Git release: v17.42.8
[8:52:47 AM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/git"
[8:52:47 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[8:52:47 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[8:52:48 AM] [semantic-release] › ✖  An error occurred while running semantic-release: Error: Command failed with exit code 1: git push https://github.com/withthegrid/platform-sdk.git refs/notes/semantic-release
remote: fatal error in commit_refs        
To https://github.com/withthegrid/platform-sdk.git
 ! [remote rejected] refs/notes/semantic-release -> refs/notes/semantic-release (failure)
error: failed to push some refs to 'https://github.com/withthegrid/platform-sdk.git'
    at makeError (/home/runner/work/platform-sdk/platform-sdk/node_modules/execa/lib/error.js:60:[11](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:11))
    at handlePromise (/home/runner/work/platform-sdk/platform-sdk/node_modules/execa/index.js:1[18](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:18):26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async pushNotes (/home/runner/work/platform-sdk/platform-sdk/node_modules/semantic-release/lib/git.js:248:3)
    at async run (/home/runner/work/platform-sdk/platform-sdk/node_modules/semantic-release/index.js:[20](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:20)2:5)
    at async module.exports (/home/runner/work/platform-sdk/platform-sdk/node_modules/semantic-release/index.js:268:[22](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:22)) {
  shortMessage: 'Command failed with exit code 1: git push https://github.com/withthegrid/platform-sdk.git refs/notes/semantic-release',
  command: 'git push https://github.com/withthegrid/platform-sdk.git refs/notes/semantic-release',
  escapedCommand: 'git push "https://github.com/withthegrid/platform-sdk.git" "refs/notes/semantic-release"',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: 'remote: fatal error in commit_refs        \n' +
    'To https://github.com/withthegrid/platform-sdk.git\n' +
    ' ! [remote rejected] refs/notes/semantic-release -> refs/notes/semantic-release (failure)\n' +
    "error: failed to push some refs to 'https://github.com/withthegrid/platform-sdk.git'",
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
Error: Command failed with exit code 1: git push https://github.com/withthegrid/platform-sdk.git refs/notes/semantic-release
remote: fatal error in commit_refs        
To https://github.com/withthegrid/platform-sdk.git
 ! [remote rejected] refs/notes/semantic-release -> refs/notes/semantic-release (failure)
error: failed to push some refs to 'https://github.com/withthegrid/platform-sdk.git'
    at makeError (/home/runner/work/platform-sdk/platform-sdk/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/home/runner/work/platform-sdk/platform-sdk/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async pushNotes (/home/runner/work/platform-sdk/platform-sdk/node_modules/semantic-release/lib/git.js:[24](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:24)8:3)
    at async run (/home/runner/work/platform-sdk/platform-sdk/node_modules/semantic-release/index.js:202:5)
    at async module.exports (/home/runner/work/platform-sdk/platform-sdk/node_modules/semantic-release/index.js:[26](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:26)8:22)
Error: Process completed with exit code 1.```

We missed breaking change in Axios error handling

🐛 Bug report

What is wrong

Axios introduced a breaking change in error handling in v0.27.0 (see axios/axios#3645 for details). Beware: until v1 they mark breaking changes by upping the minor version.

Steps to reproduce

  • do not start platform
  • start platform-client

You would expect a CommsRequestError, which would be shown in the client as:
The server cannot be reached. Check status.withthegrid.com to identify whether this is caused by withthegrid or your browser/ connection. Instead, we see The requested resource cannot be found..

documentation does not contain the schema for fileFromServer

🐛 Bug report

What is wrong

While upgrading to version 6.1.0 of joi2swagger the library fails to validate the open api specification.

With the old version in place we don't generate very detailed insights into fields
image
But with the new version in place we reference a component that we don't separately have as a component.
image

Steps to reproduce

update joi2swagger to version 6.1.0 and run the build documentation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.