-
Notifications
You must be signed in to change notification settings - Fork 167
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
Grouping feature #719
Grouping feature #719
Conversation
@chaitanya-cloudknox If you see the intial.py file |
@iamhks will this work https://docs.djangoproject.com/en/4.2/howto/writing-migrations/#migrations-that-add-unique-fields ? I think you can add id value even if its auto created |
@kamthamc @chaitanya-cloudknox I tried that too:
And if I set primary key to true for id:
|
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.
Nice work. Most of it LGTM. some minor comments.
- Translations are missing in some files
- Translations are off in some files
- When setting a state Promise is not required.
- When using Promise.all, check if you need Promise.allSettled/Promise.all
- Try to avoid !important in css
@@ -137,40 +137,64 @@ def __str__(self): | |||
|
|||
|
|||
class CreatorGroup(models.Model): | |||
creator = models.OneToOneField( | |||
Creator, on_delete=models.CASCADE, primary_key=True) | |||
id = models.UUIDField( |
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.
@tuxology is there a auto formatter for python? The indentation/styling seems to be off
|
||
class Meta: | ||
model = CreatorGroup | ||
fields = ('groupname', 'description', 'members', 'created_on', 'projects_count') |
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.
i think group_name
is more readable
return ( | ||
<Box marginY={6}> | ||
<FormControl fullWidth> | ||
<label className={commonClasses.commonClasses}> |
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.
Missing translations in the file
const [selectedProjects, setSelectedProjects] = useState([]); | ||
const handleSetState = (obj) => { | ||
if (obj) { | ||
Promise.resolve(obj).then((obj) => { |
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.
promise is not required
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.
And missing translations in file
|
||
if (loading) { | ||
return <LoadingPage />; | ||
} else if (profile && Object.keys(profile).length > 0) { |
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.
simplify this for readability.
if (loading) {
return loading
} else if(!profile || !profile.username) {
return "something"
}
return (<div />)
return res | ||
.then(res => { | ||
if (res.project && res.project.title) { | ||
if (projects[0]) { |
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.
instead check Array.isArray(projects)
color="textPrimary" | ||
className={classes.titleStyle} | ||
> | ||
{t('Edit Team Info')} |
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.
looks like translation is off in the page
Hey @iamhks Thanks a lot for this PR. Here are a few comments based on initial testing which I was able to do finally. I had to use a clean VM, do Blockers
I could not proceed and review other parts of the feature since could not move past this. UX Bugs
Improvements
|
Misc UX changes once more (unstructuredstudio#727)
Thanks for the last fixes @iamhks. I was able to proceed with more testing now and have a set of new bugs/improvements and we would be almost ready for a release 👍 Blockers
UX Bugs
Improvements
|
Activity Creation Revamp (unstructuredstudio#731)
…nto grouping-feature
This reverts commit 9bc54af.
Leaving an update here as we merge this now for future reference:
This is an exciting upcoming feature 🎉 |
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.
Finally ready after lots of reviews 🎉
Summary
Updating the existing Grouping Feature