question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: Now that we've added a Published property to a Campaign, can someone tell me what the Locked property is for?

See original GitHub issue

@tonysurma @stevejgordon @MisterJames

In Issue #1583 (which I’m currently doing a code review for in PR #1627), we’ve added a Published property to the Campaign model. From reading the issue, it looks like this change was made to allow a user to “front-load” the creation of Campaigns in the system without making those Campaigns available to “do anything” with yet…

But, there is also a property called Locked. Can someone please explain to me what is a Locked Campaign/what does it mean in the business sense to the system? Also, how does Locked affect Published, and vice-versa?

I’m opening this issue b/c I’m starting to see code like this on reads:

return _context.Campaigns
    .Include(x => x.ManagingOrganization)
    .Include(x => x.Events)
    .Include(x => x.ParticipatingOrganizations)
    .Where(c => !c.Locked && c.Published)
    .ToViewModel()
    .ToList();

.Where(c => !c.Locked && c.Published)

and I want to make sure we’re not missing a higher-level business concept here, and I also want to make sure that a “Locked” Campaign is a valid business concept that is still applicable to the project.

Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mgmccarthycommented, Dec 12, 2016

@stevejgordon, exactly what I was looking for. Thanks!

0reactions
mgmccarthycommented, Dec 15, 2016

thanks @stevejgordon, I should have close this Issue myself, seeing how I’m the one that opened it 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Published risks and usage explained with code examples
Publishing of changes occurs in the property's willSet block, meaning that any subscribers will receive an update before the property is ...
Read more >
About Advertising Restrictions | Meta Business Help Center
In some cases, we may apply restrictions on advertisers that limit their ability to advertise. These restrictions are meant to help protect people...
Read more >
Modern Warfare III. Carry Forward Content: Your Questions ...
Example 1: A MWII player has an M4 with “Orion” Mastery Camo unlocked (above). They can equip the weapon, and the Camo, and...
Read more >
Perdue brings problem-solver reputation to campaign
Republican Senate candidate David Perdue speaks to members of the South Gwinnett Rotary Club Thursday, ... Are you ready for Georgia's May 20 ......
Read more >
As COVID-19 insurance cases loom, 11th Circuit restricts ...
But a ruling Tuesday from the 11th U.S. Circuit Court of Appeals in the Mama Jo's case is likely to reverberate in nationwide...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found