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

Notify: Show more Order related variables in editor #2283

Merged
merged 1 commit into from
Oct 13, 2020
Merged

Notify: Show more Order related variables in editor #2283

merged 1 commit into from
Oct 13, 2020

Conversation

ruohola
Copy link
Contributor

@ruohola ruohola commented Oct 7, 2020

Add a new attributes attribute to shuup.notify.base.Variable for
showing examples of which attributes can be accessed in the script templates.

Refs IP-7

The new attributes look like this in the script editor:
(Note that the the javascript for the variable links didn't work even before this PR, but once it gets fixed the attributes were made so that they should work just fine with that)

image

@codecov
Copy link

codecov bot commented Oct 13, 2020

Codecov Report

Merging #2283 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2283      +/-   ##
==========================================
- Coverage   88.15%   88.14%   -0.01%     
==========================================
  Files         840      840              
  Lines       37455    37457       +2     
  Branches     4920     4920              
==========================================
  Hits        33017    33017              
- Misses       3318     3319       +1     
- Partials     1120     1121       +1     
Impacted Files Coverage Δ
shuup/front/notify_events.py 97.67% <100.00%> (+0.02%) ⬆️
shuup/notify/base.py 91.94% <100.00%> (+0.03%) ⬆️
shuup/utils/numbers.py 83.33% <0.00%> (-3.34%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 207c266...2781f9b. Read the comment docs.

Add a new `attributes` attribute to `shuup.notify.base.Variable` for
showing examples of which attributes can be accessed in the script templates.

Refs IP-7
@ruohola ruohola changed the title Show more Order related variables in notify templates Notify: Show more Order related variables in editor Oct 13, 2020
@tulimaki tulimaki added the hactoberfest-accepted Accept for hactoberfest, will merge later label Oct 13, 2020
@tulimaki tulimaki merged commit e363a39 into shuup:master Oct 13, 2020
@ruohola ruohola deleted the notify-event-variables branch October 14, 2020 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hactoberfest-accepted Accept for hactoberfest, will merge later
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants