forked from sharetribe/sharetribe
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update sharetribe #89
Open
danypr92
wants to merge
1,049
commits into
master
Choose a base branch
from
update-sharetribe
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Bug] Duplicate social media links in the footer
[Maintenance] Bump json from 9.0.4 to 10.0.0 in /client
Redirect an already logged in user to the home page when they visit the /login page
Added some new official languages
Was made consistent at sharetribe/go@21bdb80 Then was no longer consistent with sharetribe/go@9fdca60 Now back to consistency!
[Bug] Facebook & LinkedIn logos too small on signup and login pages
[Custom script] Add new body and css fields
[Maintenance] Dependencies updates
[Bug] Email sending feature produces error with certain sender names
wti pull 20210629
wti pull 2021-07-08
This uses https://github.com/scenic-views/scenic. A well known gem from Thoughtbot that adds tooling to manage DB view with regular migrations. I also had to manually remove the line ``` /*!50013 DEFINER=`sharetribe`@`%` SQL SECURITY DEFINER */ ``` from db/structure.sql so it works in CI. In there it fails with ``` Mysql2::Error: The user specified as a definer ('sharetribe'@'%') does not exist: SELECT "active_sessions" AS table_name, ``` because that DB user doesn't exist but it won't in production either. According to https://dev.mysql.com/doc/refman/5.7/en/stored-objects-security.html though, > If a definition omits the DEFINER attribute, the default definer is the user who creates the object. And that seems fine as well.
This performs a client-side validation and displays "El archivo es demasiado grande" in the drop area. There doesn't seem to be a way to print the error the backend returns because fileupload's `fail` callback doesn't provide any arguments.
Note I had to remove the DEFINER statement from the structure.sql. ``` /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`sharetribe`@`%` SQL SECURITY DEFINER */ /*!50001 VIEW `masked_people` AS select `people`.`id` AS `id ``` I did that when we created but with every update Scenic adds it and this breaks in production. We definitely need to find a better way. Either ensure the same DEFINER user is present in production or make Scenic skip that statement (I'm not sure it can).
Having a plan model with the `footer` feature alone doesn't enable it. The community needs to enable it either from `/es/admin/footer/edit` or this way.
The column is there but empty (no user has it set in the production DB). It turns out it is stored in the `emails` table. This supports users having multiple emails, I suspect to enable a single user having access to multiple communities. We don't care about this since there's only a community for Donalo so we can safely assume a one to one relationship between person and email records.
When Cucumber gets executed in CI, DatabaseCleaner tries to clean `masked_people` as if it was a regular table and the command `DELETE FROM `masked_people``, because it's a view, fails.
Like in production.
The default stack is `Heroku-20` (with Ubuntu 20) but our Ruby version is not supported there. See https://devcenter.heroku.com/articles/heroku-18-stack.
We trust Heroku's Unicorn example config (https://devcenter.heroku.com/articles/rails-unicorn). We also want to make it possible to configure workers with only changing th WEB_CONCURRENCY env var. Note this needs coopdevs/donalo#99 for things to keep working in production.
This is the one Heroku provisions. I know this might conflict with future Sharetribe upgrades but I think that's unlikely and even if it happens we can always resolve conflict as we want (using REDIS_URL).
We have paid and unpaid transactions as shapes. This fixes the new listing form where if the selected category has no associated shapes it'll fail to render the listing form.
That's because as the custom fields "Cantidad mínima a solicitar" and "Cantidad disponible" didn't have an associated category other than the default one (the first one), the listing/new view didn't show the fields unless selecting the default category. As a result, the listing had no custom field values associated and failed to load them on :show.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.