mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 18:17:55 +00:00 
			
		
		
		
	 79b1912287
			
		
	
	79b1912287
	
	
	
		
			
			* Implement custom-message management endpoints in a namespace aware manner * completion of non-enterprise version of custom-messages * clean up of error handling and fixing a nil pointer error * rename UICustomMessagesEntry to UICustomMessageEntry * add unit tests to cover new functions in UIConfig related to custom messages * unit tests for all custom message handling * add missing header comments for new files * add changelog file * fix test setup error that led to unexpected failure * change return type from slice of pointers to struct to slice of struct and add godocs to every function * add Internal suffix to internal methods for the UIConfig struct * add validation for start and end times of custom messages * improvements based on review feedback * explore new approach for custom messages * introduce new error to force HTTP 404 when referencing non-existant UI custom message * remove changelog entry until feature is complete * implement CRUD endpoints using single storage entry per namespace * add mutex to protect operations that read the storage entry and write it back * add copyright header comment to new files * fix failing tests due to change in target function behaviour in order to return 404 error when mandated * feedback from review plus some improvements on my own as well * define constants for recognized message types and replace hardcoded strings occurrences with new constants * incorporate feedback comment * beef up testing with non-root namespaces in putEntry and getEntryForNamespace * renaming CreateMessage to AddMessage in uicustommessages.Manager and uicustommessages.Entry * adding missing copyright header comments