-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix: Correcting the extravaluePaths #3842
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
Conversation
@kushthedude please review |
{{#if (eq extraRecords.status 'completed')}} | ||
{{moment-format extraRecords.completedAt 'MMMM Do YYYY, h:mm A -'}} | ||
{{moment-from-now extraRecords.completedAt}} | ||
{{#if (eq record.status 'completed')}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why reverting extraRecords ? They are used to observe other properties of record using extraValuePaths, How reverting it fixes the issue ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the same file {{ record.status }} return completed
i.e. the status of order for attendee. so if codition should be like -
{{#if (eq record.status 'completed') }}
extraRecords.status
is literaly returning nothing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's because model is attendee and record order, extraRecords wont work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exactly
Extrarecords.user.status returns |
app/templates/components/ui-table/cell/events/view/tickets/attendees/cell-order.hbs
Outdated
Show resolved
Hide resolved
…endees/cell-order.hbs Co-Authored-By: Kush Trivedi <[email protected]>
{{record.status}} | ||
</div> | ||
<div class="sub header"> | ||
{{#if extraRecords.paidVia}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too
@maze-runnar Also change the controller property for same |
{{#if record.paidVia}} | ||
<span class="weight-800"> | ||
{{t 'Payment via'}} {{extraRecords.paidVia}} | ||
{{t 'Payment via'}} {{record.paidVia}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indents
what to change in controller property? |
remove incorrect extravaluepath |
Also this is no way related to original issue, create a seperate issue and unlink it from the original one |
How is it not related? Wrong created_at was being used while rendering. Wasn't that the issue? |
If wrong created at was being than there should have been no change after
changing ticket sales that, also issue is present in order list tab too.
This is another of issue of not rendering of some properties due to wrong
valuepath being used.
…On Sun, 26 Jan, 2020, 01:35 Areeb Jamal, ***@***.***> wrote:
How is it not related? Wrong created_at was being used while rendering.
Wasn't that the issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3842?email_source=notifications&email_token=AKQMTLWJSZPWHSINHYTSFSDQ7SLRBA5CNFSM4KKXPIPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5ELLQ#issuecomment-578438574>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKQMTLTPQA2OBQRS6UV6PATQ7SLRBANCNFSM4KKXPIPA>
.
|
@kushthedude , actually there was no issue on changing the ticket end sales , when you refresh the date , attendee always shows that ticket was ordered few seconds ago . that was the actual issue. |
Read the above comment again.
On Sun, 26 Jan, 2020, 08:39 Sundaram Dubey, <[email protected]>
wrote:
… If wrong created at was being than there should have been no change after
changing ticket sales that, also issue is present in order list tab too.
This is another of issue of not rendering of some properties due to wrong
valuepath being used.
… <#m_-8895719111708257672_>
On Sun, 26 Jan, 2020, 01:35 Areeb Jamal, *@*.***> wrote: How is it not
related? Wrong created_at was being used while rendering. Wasn't that the
issue? — You are receiving this because you were mentioned. Reply to this
email directly, view it on GitHub <#3842
<#3842>?email_source=notifications&email_token=AKQMTLWJSZPWHSINHYTSFSDQ7SLRBA5CNFSM4KKXPIPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5ELLQ#issuecomment-578438574>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKQMTLTPQA2OBQRS6UV6PATQ7SLRBANCNFSM4KKXPIPA
.
@kushthedude <https://github.com/kushthedude> , actually there was no
issue on changing the ticket end sales , when you refresh the date ,
attendee always shows that ticket was ordered few seconds ago . that was
the actual issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3842?email_source=notifications&email_token=AKQMTLWPNOCN4C63J7FGJYTQ7T5GTA5CNFSM4KKXPIPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5KVHA#issuecomment-578464412>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKQMTLWSV7URHCVJ5GBWENTQ7T5GTANCNFSM4KKXPIPA>
.
|
It mentioned for order tab too
…On Sun, 26 Jan, 2020, 12:18 Kush Trivedi, ***@***.***> wrote:
Read the above comment again.
On Sun, 26 Jan, 2020, 08:39 Sundaram Dubey, ***@***.***>
wrote:
> If wrong created at was being than there should have been no change after
> changing ticket sales that, also issue is present in order list tab too.
> This is another of issue of not rendering of some properties due to wrong
> valuepath being used.
> … <#m_7709662072188712036_m_-8895719111708257672_>
> On Sun, 26 Jan, 2020, 01:35 Areeb Jamal, *@*.***> wrote: How is it not
> related? Wrong created_at was being used while rendering. Wasn't that the
> issue? — You are receiving this because you were mentioned. Reply to this
> email directly, view it on GitHub <#3842
> <#3842>?email_source=notifications&email_token=AKQMTLWJSZPWHSINHYTSFSDQ7SLRBA5CNFSM4KKXPIPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5ELLQ#issuecomment-578438574>,
> or unsubscribe
> https://github.com/notifications/unsubscribe-auth/AKQMTLTPQA2OBQRS6UV6PATQ7SLRBANCNFSM4KKXPIPA
> .
>
> @kushthedude <https://github.com/kushthedude> , actually there was no
> issue on changing the ticket end sales , when you refresh the date ,
> attendee always shows that ticket was ordered few seconds ago . that was
> the actual issue.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#3842?email_source=notifications&email_token=AKQMTLWPNOCN4C63J7FGJYTQ7T5GTA5CNFSM4KKXPIPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5KVHA#issuecomment-578464412>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AKQMTLWSV7URHCVJ5GBWENTQ7T5GTANCNFSM4KKXPIPA>
> .
>
|
Fixes #3851

Checklist
development
branch.