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

Add getOrderFormUrl to getOrderForm to support queryString first #34

Merged
merged 2 commits into from
Apr 13, 2018

Conversation

omninando
Copy link
Contributor

No description provided.

@omninando omninando self-assigned this Mar 12, 2018
@omninando omninando requested a review from klzns March 12, 2018 12:19
@omninando omninando force-pushed the feature/order-form-id-query-string branch 4 times, most recently from 8ae6b56 to 41f0641 Compare April 13, 2018 14:33
package.json Outdated
"mocha": "^1.21.5"
},
"scripts": {
"test": "./node_modules/karma/bin/karma start --single-run",
"test-watch": "./node_modules/karma/bin/karma start"
"test-watch": "./node_modules/karma/bin/karma karma start"
Copy link
Contributor

Choose a reason for hiding this comment

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

karma karma?

if id is ''
throw new Error "This method requires an OrderForm. Use getOrderForm beforehand."
"#{@_getBaseOrderFormURL()}/#{id}"
if id then "#{@_getBaseOrderFormURL()}/#{id}" else @_getBaseOrderFormURL()
Copy link
Contributor

Choose a reason for hiding this comment

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

Pq essa alteração? Não faz mt sentido, isso deve dar erro.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

eu vou pegar o id e se eu não tiver o id eu peço um id chamando a api com @_getBaseOrderFormURL()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Eu vou pegar o id e se eu não tiver o id eu peço um id chamando a api com @_getBaseOrderFormURL().
Como pode dar erro?

Copy link
Contributor

Choose a reason for hiding this comment

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

@_getBaseOrderFormURL retorna uma string e nao uma chamada a API

Copy link
Contributor

@klzns klzns Apr 13, 2018

Choose a reason for hiding this comment

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

Ja tentei resolver esse problema, mas é mais complicado do que parece:

Issue: #19
PR: #27

@omninando omninando force-pushed the feature/order-form-id-query-string branch from 41f0641 to 7db7366 Compare April 13, 2018 18:13
@omninando omninando merged commit 51a488c into master Apr 13, 2018
@omninando omninando deleted the feature/order-form-id-query-string branch April 13, 2018 18:58
@omninando omninando restored the feature/order-form-id-query-string branch October 2, 2018 20:49
@lucasecdb lucasecdb deleted the feature/order-form-id-query-string branch April 16, 2021 18:21
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.

4 participants