Skip to content

Conversation

maze-runnar
Copy link
Contributor

@maze-runnar maze-runnar commented Jan 23, 2020

Fixes #3851
Screenshot from 2020-01-23 19-22-36

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the Upstream development branch.
  • The acceptance, integration, unit tests and linter pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@maze-runnar
Copy link
Contributor Author

@kushthedude please review

iamareebjamal
iamareebjamal previously approved these changes Jan 25, 2020
{{#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')}}
Copy link
Member

@kushthedude kushthedude Jan 25, 2020

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 ?

Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

exactly

@maze-runnar
Copy link
Contributor Author

Extrarecords.user.status returns active . and in same file record.status shows completed

{{record.status}}
</div>
<div class="sub header">
{{#if extraRecords.paidVia}}
Copy link
Member

Choose a reason for hiding this comment

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

And here?

Copy link
Member

Choose a reason for hiding this comment

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

Here too

@kushthedude
Copy link
Member

@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}}
Copy link
Member

Choose a reason for hiding this comment

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

Indents

@maze-runnar
Copy link
Contributor Author

@maze-runnar Also change the controller property for same

what to change in controller property?

@kushthedude
Copy link
Member

remove incorrect extravaluepath

@kushthedude
Copy link
Member

Also this is no way related to original issue, create a seperate issue and unlink it from the original one

@iamareebjamal
Copy link
Member

How is it not related? Wrong created_at was being used while rendering. Wasn't that the issue?

@kushthedude
Copy link
Member

kushthedude commented Jan 25, 2020 via email

@maze-runnar
Copy link
Contributor Author

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.

@kushthedude
Copy link
Member

kushthedude commented Jan 26, 2020 via email

@kushthedude
Copy link
Member

kushthedude commented Jan 26, 2020 via email

@kushthedude kushthedude changed the title fix: Changing date of ticket sales results in date change of ticket b… fix: Correcting the extravaluePaths Jan 26, 2020
@kushthedude kushthedude merged commit 8e1e7a9 into fossasia:development Jan 26, 2020
@maze-runnar maze-runnar deleted the patch-4 branch January 26, 2020 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

extravaluepath values in tickets/attendee on event dashboard

3 participants