Code Monkey home page Code Monkey logo

spool-cart's People

Contributors

dependabot[bot] avatar scott-wyatt avatar wbhob avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

spool-cart's Issues

Add Remove Vendor

Issue Description

Should use vendor objects

Environment

  • node version: 10.0.0
  • fabrix version: 1.5.9
  • operating system: macOS/Linux

Adding multiple associations does not work

it('should add association to product', (done) => {
adminUser
.post(`/product/${createdProductID}/associations`)
.send(qs.stringify({
associations: [1, 2]
}))
.expect(200)
.end((err, res) => {
// console.log('BROKE ASSOC', res.body)
assert.ok(res.body.length)
done(err)
})
})

This test does not work in practice (not making association, returns empty array).

Update address not updating internally

'PUT': {
handler: 'CustomerController.updateAddress',
config: {
prefix: 'cart.prefix',
validate: {
params: {
id: joi.alternatives().try(
joi.number(),
joi.string()
).required(),
address: joi.any().required()
}
},
app: {
permissions: {
resource_name: 'apiPutCustomerIdAddressAddressRoute',
roles: ['admin']
}
}
}
},

also, it is not returning the updated object

Subscription Cancelling too fast.

Issue Description

Should cancel at cancellation date. Was cancelled 30 minutes after deactivating.

Environment

  • node version: 10
  • fabrix version: 1.6.0
  • operating system: all

[bug] Calculated Price not Updating

Issue Description

When uploading products through the admin panel - their calculated pricing is not getting updated to the newest pricing fix, it stays the old pricing.

This affects the front-end as it shows the calculated price to be displayed - as well as this part gets carried over to the cart checkout for the calculated price vs the compare_at_price and price columns.

Environment

  • node version: ???
  • fabrix version: ???
  • operating system: ???

Can not delete user

'/customer/:id/user/:user': {
'GET': {
handler: 'CustomerController.user',
config: {
prefix: 'cart.prefix',
validate: {
params: {
id: joi.alternatives().try(
joi.number(),
joi.string()
).required(),
user: joi.alternatives().try(
joi.number(),
joi.string()
).required()
}
},
app: {
permissions: {
resource_name: 'apiGetCustomerIdUserUserRoute',
roles: ['admin']
}
}
}
},

Calling this endpoint returns a 404.

Missing Endpoints from NgAdmin QA

  • PUT /api/v1/customer/<id>/customers
  • DELETE /api/v1/collection/<id>/collection/<id>
  • DELETE http://localhost:4200/api/v1/product/<id>/variant/<variant>/images/<image>
  • PUT http://localhost:4200/api/v1/vendor/<id>/products
  • POST http://localhost:4200/api/v1/vendors

updating variant doesn't return images

Issue Description

When updating a variant, no images key is returned.

When GETing a product, the returned images array on that variant is an empty array.

Environment

  • node version: ???
  • fabrix version: ???
  • operating system: ???

Return associations on remove association

Issue Description

When removing an association (DELETE /product/:product/association/:association) it should also return the updated array of associations on the product (currently returns the product instance)

Environment

  • node version: ???
  • fabrix version: ???
  • operating system: ???

User -> Add/Remove Customer

spool-cart/lib/config/routes.ts

Lines 11612 to 11640 in 7d4e2f2

'/user/:id/customers': {
'GET': {
handler: 'UserController.customers',
config: {
prefix: 'cart.prefix',
validate: {
params: {
id: joi.alternatives().try(
joi.number(),
joi.string()
).required()
},
query: {
offset: joi.number(),
limit: joi.number(),
sort: joi.array().items(joi.array()),
where: joi.any(),
include: joi.array().items(joi.string())
}
},
app: {
permissions: {
resource_name: 'apiGetUserIdCustomersRoute',
roles: ['admin']
}
}
}
}
},

Dedupe images in collections

When pushing images with the same src, they can sometimes appear as duplicates and be injected twice. this causes an issue with updating positions when UPDATE calls need to be made.

Put Variant Options

Issue Description

Variant Option not updated when passed as update.

Environment

  • node version: 1.0.0
  • fabrix version: 1.5.9
  • operating system: macOS/Linux

Property Pricing

Issue Description

On Product Variant Property Pricing Changes and Product Property Changes, the variants should all be updated.

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.