-
-
Couldn't load subscription status.
- Fork 406
Implement File column configuration #4770
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
|
@seancolsen @zackkrida I wanted to let you both know the direction I'm heading with this PR. There will be a UI type for "File" displayed to the user in the "Add column" dropdown as well as the "Change data type" dropdown. As far as the user experience is concerned, the "File" type works like every other type displayed in the type selection menu.
In other parts of the product where column metadata is not yet accessible, this column would be recongized as a jsonb column.
Now, this is not entirely functional yet, but I've made essential modifications towards getting this UX working. The work to send the request to update column metadata while creating/updating is pending. More relevant to @seancolsen: This affects work in the other Files PRs. Essentially, only the lower levels of the frontend has to be aware of files and all higher levels would have to treat File like any other type, instead of treating it like a PK/FK. The changes are best demonstrated by this commit: 08ef68d. |
|
That sounds great, @pavish — it feels like the "correct" way to solve this. I'll keep an eye out for any concerns or more detailed feedback from @seancolsen . |
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.
This works great @pavish!
I think if I had chosen this UI approach, it probably would have taken me like 3x the time it took you, just since it touches this abstractType system that you're much more familiar with.
On our call you said that your changes are still pretty ugly and you might want to spend another day or so cleaning it up. But I think we can to that later. For now, I can see that this works. So I'm marking it as ready to merge.
I'm holding off on merging it though, just to make it easer for you to review my PR #4758.
I did a quick skim over the diff, but I didn't think too deeply about it, just because this code badly needs to be refactored anyway so I'm not too concerned about adding additional tech debt in this area of the codebase right now.
The linting errors here seem to be from changes in the base branch. We can sort that out independently of this PR.
|
This is ready to merge once the base branch becomes |
|
@seancolsen I notice you've reviewed this PR before I had marked it as ready. It still doesn't handle case where the 'Files' option should be disabled or hidden when commonData does not contain I'm going to hold off on merging this in, until I fix that. |
…-foundation/mathesar into files_column_config
|
@pavish it seems we had a miscommunication. Based on our call I thought you were done here. Specifically:
Even with the miscommunication though, I'm not sure what the harm would be in merging this. That's why I'm biasing my actions towards moving forward (quickly!) here, rather than waiting, double-checking with you to make sure we have a green light. Is there a problem with merging it as-is? My problem with keeping it open is that we have a lot of other work stacked on this. And I want to be able to merge that work so that we can avoid merge conflicts now that we're spreading these small tasks across three devs. |
This PR touches a lot of files and I wasn't confident that these changes wouldn't break anything else. I didn't want to rush this PR since I had not completed due diligence on my end. That's why the PR wasn't marked as ready to review.
You're right. I'll get the changes mentioned in this comment in subsequent PRs. I took some time to test all affected areas and added one minimal commit. With this, this PR can be merged in. |



Fixes #4763
Checklist
Update index.md).developbranch of the repositoryvisible errors.
Developer Certificate of Origin
Developer Certificate of Origin