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

NAS-133538 / 25.04 / fromemail must be specified when setting up OAuth for Outlook Mail #11334

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

AlexKarpov98
Copy link
Contributor

Testing:
See ticket.

Result:
Screenshot 2025-01-14 at 12 35 47

Downstream

Affects Reasoning
Documentation From Email option is now required for Outlook provider

@AlexKarpov98 AlexKarpov98 self-assigned this Jan 14, 2025
@AlexKarpov98 AlexKarpov98 requested a review from a team as a code owner January 14, 2025 10:37
@AlexKarpov98 AlexKarpov98 requested review from undsoft and removed request for a team January 14, 2025 10:37
@bugclerk
Copy link
Contributor

@bugclerk bugclerk changed the title NAS-133538: fromemail must be specified when setting up OAuth for Outlook Mail NAS-133538 / 25.04 / fromemail must be specified when setting up OAuth for Outlook Mail Jan 14, 2025
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.75%. Comparing base (0f70118) to head (78e0f54).
Report is 4 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #11334   +/-   ##
=======================================
  Coverage   82.74%   82.75%           
=======================================
  Files        1654     1654           
  Lines       59135    59135           
  Branches     6218     6218           
=======================================
+ Hits        48932    48935    +3     
+ Misses      10203    10200    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@undsoft undsoft left a comment

Choose a reason for hiding this comment

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

Field is required now.

return this.isSmtp
? this.form.valid
: this.hasOauthAuthorization;
return !this.isSmtp ? this.hasOauthAuthorization && this.form.valid : this.form.valid;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe just rewrite as:

if (!this.form.valid) {
  return false;
}

return ...

@AlexKarpov98 AlexKarpov98 merged commit 46b4f6c into master Jan 15, 2025
9 checks passed
@AlexKarpov98 AlexKarpov98 deleted the NAS-133538 branch January 15, 2025 09:05
@bugclerk
Copy link
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Jan 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants