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

Make All Worlds Discoverable Proposal #361

Merged

Conversation

contribuyente
Copy link
Contributor

@contribuyente contribuyente commented Sep 21, 2023

Summary

In response to the governance proposal, Make All Worlds Discoverable On Places dApp, this pull request not only enhances the discoverability of "Worlds" in the Decentraland Places dApp but also undertakes a significant cleanup of redundant database and code infrastructure. All Worlds, irrespective of their association with LAND owners or renters, are now discoverable.

Changes

  • Eliminated the hidden column from the database.
  • Purged the AND hidden=false condition from the findWorld and countWorlds queries.
  • Removed all occurrences and usages of the hidden property across various files.
  • Deleted the user-facing disclaimer in the UI regarding the discoverability constraints of Worlds.
  • Associated tasks that relied on the hidden attribute have been appropriately removed.

Impact

This updated change is a leap towards the community's vision of a more inclusive and engaging Decentraland. All Worlds are now on an even playing field, fostering a more democratic content discovery process.

Reviewers

A call for Foundation devs and proactive community members to ensure these changes meet the intent and spirit of the governance proposal. Feedback is immensely valuable to guarantee a seamless and impactful transition.

@contribuyente contribuyente marked this pull request as draft September 21, 2023 04:08
@contribuyente contribuyente marked this pull request as ready for review October 6, 2023 02:02
@contribuyente
Copy link
Contributor Author

Following the positive outcome of the binding governance proposal, which garnered a significant 10M VP in favor, I'm reaching out to leading contributors of this repository, @braianj and @2fd, for a review of this pull request. If any aspects of this implementation are found lacking or misaligned, please don't hesitate to close it and take any necessary actions. Appreciate your attention and collaboration. Thank you.

@2fd
Copy link
Contributor

2fd commented Oct 6, 2023

Hi @contribuyente, thanks for contributing to the project!

The hidden feature was developed only because of the restriction we had to publish all worlds, so I will ask you to remove it entirely from the project, including the database, and to modify the database indices to prevent a regression in the performance of the queries.

To do so, you will need to:

@contribuyente
Copy link
Contributor Author

Hi @2fd,

Thank you for the comprehensive guidance on this matter. It's clear to see why you're a core contributor, given the depth of insight you've provided here.

I understand the rationale behind the original hidden feature and the steps required to phase it out. I'll ensure that all related components are removed appropriately from the database and relevant files, and I'll attend to the indices to maintain the performance integrity of the queries.

Your clear outline makes this task straightforward, and I appreciate you taking the time to list out each and every file that needs attention.

Once I've made these changes, I'll push the updated pull request for further review. If there are any additional concerns or modifications required, don't hesitate to let me know.

@contribuyente
Copy link
Contributor Author

Hey @2fd,

I've just pushed all the changes mentioned above. Would you please give it a look when you have a moment? Thanks 🙏 .

@braianj
Copy link
Collaborator

braianj commented Oct 16, 2023

Hi @contribuyente, I just approved to run the actions but they failed. I recommend that you locally run the npm run husky-setup command before your next commit to perform the checks locally before submitting the code.
On the other hand it looks like the problem is coming from the prettier side, so I recommend you run npm run format, or you could also run npm run lint:fix.
btw, I would put in the migration the column drop after the index drops.

@contribuyente
Copy link
Contributor Author

Hello @braianj, thank you for the feedback. I did as you said and moved the dropColumn call, also linted and setup the pre-commit hooks. I noticed some tests were failing too and I fixed them, but there are 3 test cases that fail and I don't understand the error, it doesn't seem to be related to the hidden column per se:

Screenshot 2023-10-17 at 16 47 14

They are all related to this "fetcher" not being set.

@braianj
Copy link
Collaborator

braianj commented Oct 17, 2023

@contribuyente It could be your node version. Please notice that the min supported version is 18.18.X. Try with that.

Signed-off-by: Braian Mellor <braianj@gmail.com>
@contribuyente
Copy link
Contributor Author

Hi @braianj it was indeed the node version, thank you. It seems all checks are passing now.

Screenshot 2023-10-19 at 10 48 21

Copy link
Collaborator

@braianj braianj left a comment

Choose a reason for hiding this comment

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

Please make those changes and we'll be go to do. Thanks!

Co-authored-by: Braian Mellor <braianj@gmail.com>
Signed-off-by: Monotributista <140657302+contribuyente@users.noreply.github.com>
@contribuyente
Copy link
Contributor Author

Your suggestion has been committed @braianj 🤝

Comment on lines +17 to +18
pgm.dropIndex(PlaceModel.tableName, ["updated_at"])
pgm.dropIndex(PlaceModel.tableName, ["like_rate"])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it okay that these two don't have the "hidden" column? They were removed in your suggested commit @braianj

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes if you look when the index has been created, those don't have hidden column either, the hidden is inside the where

pgm.createIndex(PlaceModel.tableName, ["updated_at"], {
    where: "disabled is false and hidden is false and world is false",
  })
  pgm.createIndex(PlaceModel.tableName, ["like_rate"], {
    where: "disabled is false and hidden is false and world is false",
  })

Copy link
Collaborator

@braianj braianj left a comment

Choose a reason for hiding this comment

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

Great job. 🚀
thank you for contributing to the project. 👍

@braianj braianj merged commit bd0e6b6 into decentraland:master Oct 19, 2023
1 check passed
@contribuyente contribuyente deleted the make-all-worlds-discoverable-proposal branch October 21, 2023 14:28
@contribuyente
Copy link
Contributor Author

Thank you both @2fd and @braianj 🤝 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants