Click here to Skip to main content
15,913,159 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Thinking Of Writing An Article Pin
Mike Hankey14-Feb-17 6:28
mveMike Hankey14-Feb-17 6:28 
GeneralRe: Thinking Of Writing An Article Pin
Bryian Tan14-Feb-17 7:27
professionalBryian Tan14-Feb-17 7:27 
GeneralRe: Thinking Of Writing An Article Pin
Jon McKee14-Feb-17 8:24
professionalJon McKee14-Feb-17 8:24 
GeneralRe: Thinking Of Writing An Article Pin
Pete O'Hanlon14-Feb-17 11:59
mvePete O'Hanlon14-Feb-17 11:59 
GeneralRe: Thinking Of Writing An Article Pin
F-ES Sitecore14-Feb-17 22:16
professionalF-ES Sitecore14-Feb-17 22:16 
GeneralRe: Thinking Of Writing An Article Pin
Pete O'Hanlon14-Feb-17 22:22
mvePete O'Hanlon14-Feb-17 22:22 
GeneralRe: Thinking Of Writing An Article Pin
Kevin Marois17-Jul-17 7:47
professionalKevin Marois17-Jul-17 7:47 
GeneralRe: Thinking Of Writing An Article Pin
Kevin Marois17-Jul-17 7:01
professionalKevin Marois17-Jul-17 7:01 
Pete,

I dusted off this idea I think I'm going to put together a prototype, but I wanted to respond to your points before I do and see what you thought...

Pete O'Hanlon wrote:
Some thoughts for you to consider (based on having worked on apps that faced these issues in the past):

I too have done locking mechanisms. They usually involve writing to a locking table. My idea here removes that table from the architecture, but the issues you pointed out still exist. Here's my thoughts...

Pete O'Hanlon wrote:
What would you be sending out a lock message on? When a user starts editing?

I would think an Edit button of some sort would be the initiator. The button is disabled until a SignalR message says the record is no longer locked, at which point it becomes enabled. Clicking it performs a lock.

Pete O'Hanlon wrote:
What about the situation where someone takes out a lock but the application crashes so that they don't release the lock? What strategies are you going to put in place to handle this? There's a similar situation where the user starts an edit and then takes a phone call so that they keep this record in an editing state for a period of time?

The basics of the hub would have methods to add/remove a lock using the View Name and User Name, and a method to remove all locks for a user. On startup all preexisting locks for a user are removed (in case they previously crashed) and the app would need an administrator function to do the same.

Pete O'Hanlon wrote:
What about if you are editing a record that is used as part of a relationship? A lookup table value for instance? Will the consuming applications need to be aware that the record may be changing?

I've always assumed that if a parent view is locked, then so are its child views.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

GeneralRe: Thinking Of Writing An Article Pin
Mark_Wallace14-Feb-17 20:27
Mark_Wallace14-Feb-17 20:27 
GeneralRe: Thinking Of Writing An Article Pin
Marc Clifton15-Feb-17 2:35
mvaMarc Clifton15-Feb-17 2:35 
GeneralThought of the day PinPopular
OriginalGriff14-Feb-17 5:10
mveOriginalGriff14-Feb-17 5:10 
GeneralRe: Thought of the day Pin
jeron114-Feb-17 5:13
jeron114-Feb-17 5:13 
GeneralRe: Thought of the day Pin
Duncan Edwards Jones14-Feb-17 5:14
professionalDuncan Edwards Jones14-Feb-17 5:14 
GeneralRe: Thought of the day Pin
Nagy Vilmos14-Feb-17 5:27
professionalNagy Vilmos14-Feb-17 5:27 
GeneralRe: Thought of the day Pin
Daniel Pfeffer14-Feb-17 5:34
professionalDaniel Pfeffer14-Feb-17 5:34 
QuestionRe: Thought of the day Pin
megaadam14-Feb-17 5:41
professionalmegaadam14-Feb-17 5:41 
GeneralRe: Thought of the day Pin
Gary Wheeler14-Feb-17 6:04
Gary Wheeler14-Feb-17 6:04 
GeneralRe: Thought of the day Pin
OriginalGriff14-Feb-17 20:49
mveOriginalGriff14-Feb-17 20:49 
GeneralRe: Thought of the day Pin
Sander Rossel14-Feb-17 6:20
professionalSander Rossel14-Feb-17 6:20 
GeneralRe: Thought of the day Pin
Foothill14-Feb-17 8:15
professionalFoothill14-Feb-17 8:15 
GeneralRe: Thought of the day Pin
Corporal Agarn14-Feb-17 8:42
professionalCorporal Agarn14-Feb-17 8:42 
GeneralRe: Thought of the day Pin
OriginalGriff14-Feb-17 10:48
mveOriginalGriff14-Feb-17 10:48 
GeneralRe: Thought of the day Pin
W Balboos, GHB14-Feb-17 8:29
W Balboos, GHB14-Feb-17 8:29 
GeneralRe: Thought of the day Pin
Bryian Tan14-Feb-17 9:09
professionalBryian Tan14-Feb-17 9:09 
GeneralRe: Thought of the day Pin
Cornelius Henning14-Feb-17 14:08
professionalCornelius Henning14-Feb-17 14:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.