- 
                Notifications
    
You must be signed in to change notification settings  - Fork 32
 
✨ On first support message send email to fogbugz #8238
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
          
     Merged
      
      
            matusdrobuliak66
  merged 14 commits into
  ITISFoundation:master
from
matusdrobuliak66:create-case-in-fogbugz-via-email
  
      
      
   
  Aug 21, 2025 
      
    
  
     Merged
                    Changes from 8 commits
      Commits
    
    
            Show all changes
          
          
            14 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      37de58e
              
                send email to fogbugz
              
              
                matusdrobuliak66 1216a42
              
                send email to fogbugz
              
              
                matusdrobuliak66 1c1bc42
              
                send email to fogbugz
              
              
                matusdrobuliak66 339cd1a
              
                send email to fogbugz
              
              
                matusdrobuliak66 91420d2
              
                send email to fogbugz add test
              
              
                matusdrobuliak66 f81aa73
              
                Adds Redis lock to support message creation for sync
              
              
                matusdrobuliak66 695d7ef
              
                Merge branch 'master' into create-case-in-fogbugz-via-email
              
              
                matusdrobuliak66 53021f7
              
                send email to fogbugz add test
              
              
                matusdrobuliak66 4474c92
              
                Merge branch 'master' into create-case-in-fogbugz-via-email
              
              
                matusdrobuliak66 1a95a73
              
                Merge branch 'master' into create-case-in-fogbugz-via-email
              
              
                matusdrobuliak66 a6616cb
              
                Merge branch 'create-case-in-fogbugz-via-email' of github.com:matusdr…
              
              
                matusdrobuliak66 9d63834
              
                Renames support message creation method for clarity
              
              
                matusdrobuliak66 81855ce
              
                fix support user access permissions to messages
              
              
                matusdrobuliak66 92cc88f
              
                fix support user access permissions to messages
              
              
                matusdrobuliak66 File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
        
          
  
    
      
          
            19 changes: 19 additions & 0 deletions
          
          19 
        
  services/web/server/src/simcore_service_webserver/email/email_service.py
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import logging | ||
| 
     | 
||
| from ._core import AttachmentTuple, get_template_path, send_email_from_template | ||
| 
     | 
||
| log = logging.getLogger(__name__) | ||
| 
     | 
||
| 
     | 
||
| # prevents auto-removal by pycln | ||
| # mypy: disable-error-code=truthy-function | ||
| assert AttachmentTuple # nosec | ||
| assert send_email_from_template # nosec | ||
| assert get_template_path # nosec | ||
| 
     | 
||
| 
     | 
||
| __all__: tuple[str, ...] = ( | ||
| "AttachmentTuple", | ||
| "send_email_from_template", | ||
| "get_template_path", | ||
| ) | 
        
          
  
    
      
          
            3 changes: 0 additions & 3 deletions
          
          3 
        
  services/web/server/src/simcore_service_webserver/email/utils.py
  
  
      
      
   
        
      
      
    This file was deleted.
      
      Oops, something went wrong.
      
    
  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
        
          
  
    
      
          
            36 changes: 36 additions & 0 deletions
          
          36 
        
  services/web/server/src/simcore_service_webserver/templates/common/request_support.jinja2
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| Request for Support on {{ host }} | ||
| <!-- | ||
| NOTE: this header is only for testing purposes and is removed automatically before sending | ||
| TEST host: {{ host }} | ||
| TEST first_name: {{ first_name }} | ||
| TEST last_name: {{ last_name }} | ||
| TEST user_email: {{ user_email }} | ||
| TEST product: {{ product }} | ||
| TEST conversation_url: {{ conversation_url }} | ||
| TEST message_content: {{ message_content }} | ||
| TEST extra_context: {{ extra_context }} | ||
| --> | ||
| <p> | ||
| Dear Support Team, | ||
| </p> | ||
| 
     | 
||
| <p> | ||
| We have received a support request from {{ first_name }} {{ last_name }} ({{ user_email }}) regarding an account in <b>{{ product.display_name }}</b> on <b>{{ host }}</b>. | ||
| </p> | ||
| 
     | 
||
| <p> | ||
| All communication should take place in the Platform Support Center at the following link: | ||
| <a href="{{ conversation_url }}">{{ conversation_url }}</a> | ||
| </p> | ||
| 
     | 
||
| <p> | ||
| First message content: {{ message_content }} | ||
| </p> | ||
| 
     | 
||
| <p> | ||
| Extra Context: | ||
| </p> | ||
| 
     | 
||
| <pre> | ||
| {{ dumps(extra_context) }} | ||
| </pre> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.