Skip to content

added default language for user - #103

Open
agayevilkin wants to merge 6 commits into
mainfrom
feature_#83_insert_default_language_for_user
Open

added default language for user#103
agayevilkin wants to merge 6 commits into
mainfrom
feature_#83_insert_default_language_for_user

Conversation

@agayevilkin

Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

please change package name from userconfig to userConfig

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

was changed userconfig to userConfig

@hamidsultanzadeh hamidsultanzadeh linked an issue Oct 15, 2023 that may be closed by this pull request

userConfigService.insert(UserConfig.builder()
.key(DEFAULT_LANGUAGE)
.value(languageService.getDefaultLanguage().getName())

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we need to store ID of the default language here

@agayevilkin agayevilkin Oct 16, 2023

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

added an "entityId" field to UserConfig class and I tested It works, but there are some problems.

Problem:

  • There is an issue with the auto ID generation in the UserConfig.
  • in the AuthBusinessServiceImpl where throwIf(() -> userService.checkByEmail...

I fixed the problems to test the code but then rolled back the changes for a better solution.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

let's have a short call on telegram on Saturday for clarify this issue

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.

[FEATURE] Insert default language for user

3 participants