Removing a report leaves columns and stats behind?

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

Removing a report leaves columns and stats behind?

Postby Dan_Jazz_Man » Tue Nov 10, 2009 11:39 am

Just wondering why only the report itself is removed but all the columns and statistics it uses are left untouched.
I think it would make sense to at least offer an option to remove a report along with everything it uses, like a checkbox
or something. Otherwise, one ends up with a lot of junk in Columns and Statistics lists. Especially, removing a report
and then re-importing it leads to having duplicates of every stat and column it uses.
Dan_Jazz_Man
 
Posts: 476
Joined: Sun Feb 03, 2008 5:58 pm

Re: Removing a report leaves columns and stats behind?

Postby kraada » Tue Nov 10, 2009 11:52 am

Reimporting the report shouldn't duplicate stats; the stats should only import if needed, not every time.

My only worry with your suggestion is that people might remove reports and inadvertently remove stats that they do use elsewhere. That said, I do think there should be a way to work around that problem so I will suggest this to our development team.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Removing a report leaves columns and stats behind?

Postby Dan_Jazz_Man » Tue Nov 10, 2009 12:05 pm

kraada wrote:Reimporting the report shouldn't duplicate stats; the stats should only import if needed, not every time.

I'm pretty sure you end up with duplicates the same way you do when you import existing stats, but I'll double-check.
What if the stats have changed in a new version of the report, will the old ones we overwritten?

kraada wrote:My only worry with your suggestion is that people might remove reports and inadvertently remove stats that they do use elsewhere. That said, I do think there should be a way to work around that problem so I will suggest this to our development team.

Yeah, thats what I was thinking . But still, an option to remove all traces of the report for those who do know what they're doing would be nice.
Dan_Jazz_Man
 
Posts: 476
Joined: Sun Feb 03, 2008 5:58 pm

Re: Removing a report leaves columns and stats behind?

Postby kraada » Tue Nov 10, 2009 12:17 pm

Dan_Jazz_Man wrote:I'm pretty sure you end up with duplicates the same way you do when you import existing stats, but I'll double-check.
What if the stats have changed in a new version of the report, will the old ones we overwritten?


Unclear; I'll look into this. Obviously what is ideal is that it checks and asks you what it wants to do if it finds discrepancies.

Dan_Jazz_Man wrote:Yeah, thats what I was thinking . But still, an option to remove all traces of the report for those who do know what they're doing would be nice.


Agreed.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Removing a report leaves columns and stats behind?

Postby Dan_Jazz_Man » Tue Nov 10, 2009 3:16 pm

OK, here are the results of my double-check:
1. Removing and re-importing a report does NOT create columns' or stats' duplicates. I was wrong about that.
2. If a column or stat already exists in the PT, it is NOT updated by the same column or stat from the report, when
it has a different value or definition. PT's behavior in this scenario should definitely be changed to what you suggested
("it checks and asks you what it wants to do if it finds discrepancies")
Dan_Jazz_Man
 
Posts: 476
Joined: Sun Feb 03, 2008 5:58 pm

Re: Removing a report leaves columns and stats behind?

Postby kraada » Tue Nov 10, 2009 3:37 pm

I'll make a suggestion for the development team with regards to (2). I'm glad to hear I was right about (1) :)
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests