Giter Site home page Giter Site logo

mainmatter / ember-api-actions Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 3.0 2.87 MB

Ember.js addon allowing you to easily implement non-CRUD actions for your Ember Data models

License: MIT License

JavaScript 93.19% HTML 6.55% Handlebars 0.26%
crud ember-data emberjs

ember-api-actions's People

Contributors

ember-tomster avatar mrloop avatar renovate[bot] avatar skoebasteve avatar turbo87 avatar zeppelin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ember-api-actions's Issues

Requested URL is always an absolute URL

In #151, a change was made that adds the current origin to the baseUrl. Although this works fine in most cases, or as the PR says "unlikely to be an issue in practice", it does affect our tests. Let me briefly explain this first.

Our acceptance tests work with PollyJS, which stores the API responses in recording files. To make those requests in the recordings API-agnostic (to allow recording tests with different backends), we set up our API host as '' and use a proxy server to intercept those requests and do the requests to the backend that is currently configured. The way the tests then look up the requests in those recording files, is based on the url, headers, etc. Since this addon turns a url like /v1/users into for example http://localhost:4200/v1/users, this lookup fails. Re-recording the tests is not a solution though, as CI uses a different host and then the lookup would fail there.

I think that the location.href addition was done because new URL(baseUrl) fails with a baseUrl of e.g. /v1/users. However, since this is indeed a breaking change (for us at least), I think it's safer to do something like

return baseUrl.startsWith(url.origin) ? url.href : url.href.replace(url.origin, '');

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Lock file maintenance

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v3.6.0
  • pnpm/action-setup v2.4.0
  • actions/setup-node v3.8.2
  • actions/checkout v3.6.0
  • pnpm/action-setup v2.4.0
  • actions/setup-node v3.8.2
  • actions/checkout v3.6.0
  • pnpm/action-setup v2.4.0
  • actions/setup-node v3.8.2
.github/workflows/release.yml
  • actions/checkout v3.6.0
  • actions/setup-node v3.8.2
npm
package.json
  • ember-cli-babel ^7.26.11
  • @ember/optional-features 2.1.0
  • @ember/string 3.1.1
  • @ember/test-helpers 3.3.0
  • @embroider/test-setup 3.0.3
  • @glimmer/component 1.1.2
  • @glimmer/tracking 1.1.2
  • @release-it-plugins/lerna-changelog 5.0.0
  • @babel/eslint-parser 7.24.6
  • broccoli-asset-rev 3.0.0
  • concurrently 8.2.2
  • ember-auto-import 2.7.3
  • ember-cli 5.8.1
  • ember-cli-dependency-checker 3.3.2
  • ember-cli-inject-live-reload 2.1.0
  • ember-cli-sri 2.1.1
  • ember-cli-terser 4.0.2
  • ember-data 5.3.3
  • ember-disable-prototype-extensions 1.1.3
  • ember-cli-htmlbars 6.3.0
  • ember-load-initializers 2.1.2
  • ember-page-title 7.0.0
  • ember-qunit 8.0.2
  • ember-resolver 10.1.1
  • ember-source 5.8.0
  • ember-template-lint 6.0.0
  • ember-try 2.0.0
  • eslint 9.3.0
  • eslint-config-prettier 9.1.0
  • eslint-plugin-ember 12.1.1
  • eslint-plugin-n 17.7.0
  • eslint-plugin-prettier 5.1.3
  • eslint-plugin-qunit 8.1.1
  • loader.js 4.7.0
  • msw 1.3.3
  • prettier 3.2.5
  • qunit 2.21.0
  • qunit-dom 3.1.2
  • release-it 15.11.0
  • webpack 5.91.0
  • node 16.* || >= 18
regex
.github/workflows/ci.yml
  • pnpm 8.15.8

  • Check this box to trigger a request for Renovate to run again on this repository

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.