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

build: Migrate views to Phoenix 1.7 #343

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Conversation

ruioliveira02
Copy link
Member

@ruioliveira02 ruioliveira02 commented Sep 7, 2023

Closes #339.

Admin controllers aren't migrated. I think we should remove them and start from scratch there. What do you think @RuiL1904 @MarioRodrigues10 ?

@ruilopesm
Copy link
Member

@ruioliveira02 I agree.

@diogogmatos
Copy link
Member

token_balance: at.token_balance,
prizes: for(p <- at.prizes, do: PrizeJSON.prize_attendee(%{prize: p})),
entries: at.entries,
redeemables: for(r <- at.redeemables, do: RedeemableJSON.my_readeemables(%{redeemable: r}))
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
redeemables: for(r <- at.redeemables, do: RedeemableJSON.my_readeemables(%{redeemable: r}))
redeemables: for(r <- at.redeemables, do: RedeemableJSON.my_redeemables(%{redeemable: r}))

Fix the typo in this line

Copy link
Member

@MarioRodrigues10 MarioRodrigues10 left a comment

Choose a reason for hiding this comment

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

It returns the following error:
image
image

Comment on lines 33 to 35
def render("price.json", %{price: price}) do
%{price: price}
end
Copy link
Member

Choose a reason for hiding this comment

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

I think is due to this function you should create

def price(%{price: price}) do
 %{price: price}
end

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.

Migrate to Phoenix 1.7
4 participants