- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1
 
          Add column external_uuid to contact/contactgroup/channel table
          #216
        
          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
767820c    to
    0a3cc97      
    Compare
  
    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.
You're missing the change in the full schema.sql file (looks like I've totally missed this before).
Also, if the NOT NULL constraints remain,
- a value should be set for existing rows.
 - this should not be merged without Icinga/icinga-notifications-web#199, otherwise this would break creating contacts.
 
b997f95    to
    bcc0bf0      
    Compare
  
    bcc0bf0    to
    2813f1e      
    Compare
  
    2813f1e    to
    c630f50      
    Compare
  
    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.
General question: do you (= team web) expect/want this to be merged soon?
        
          
                schema/pgsql/schema.sql
              
                Outdated
          
        
      | CONSTRAINT pk_contact PRIMARY KEY (id), | ||
| UNIQUE (username) | ||
| UNIQUE (username), | ||
| UNIQUE (external_uuid), | ||
| CONSTRAINT pk_contact PRIMARY KEY (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.
I'm wondering why you reordered the constraints here. Also, in the rest of the schema file, so far the primary key is given first, I'd keep it that way (it also makes sense to me, one can say it's the most important constraint).
c630f50    to
    ebe647d      
    Compare
  
    | 
           This can wait, so far it is a stand-alone change without any dependencies to other branches (except the linked web branch). When the corresponding web branch is ready to be merged, this should be merged together with it.  | 
    
ebe647d    to
    8f8e51c      
    Compare
  
    | 
           I've only rebased and fixed the conflicts.  | 
    
eb223eb    to
    ed33127      
    Compare
  
    | 
           Added mysql changes. Should be somewhat final now.  | 
    
| 
           So this is in scope for the next release? 
 
 Is "somewhat finial" final enough that we could merge it any time? Or should we still wait for anything in that PR?  | 
    
          
 still applies  | 
    
| 
           FYI: With these changes, the PR should also make it into a "ready to merge anytime the corresponding Notifications Web PR is ready", similar to #344 (review).  | 
    
ed33127    to
    bf27922      
    Compare
  
    external_uuid to contact/contactgroup tableexternal_uuid to contact/contactgroup/channel table
      …annel` The `UUID()` function exists since MySQL 8.0 and is available in MariaDB 10.2.2. Both current minimum requirements for Icinga DB.
bf27922    to
    9edddb5      
    Compare
  
    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 PR is fine and can be merged any time the corresponding Notifications Web PR is ready. Though it probably shouldn't merged earlier as the added columns are required without a default, hence without the corresponding change in Notifications Web, older versions can't insert new rows anymore.
Thus, I've converted the PR to a draft for the moment (so there's a hint that it maybe shouldn't be merged immediately despite this approval) with a corresponding note in the PR description.
resolves #192
Draft until the following PR is merged: