Giter Site home page Giter Site logo

You can create a custom search with an empty name, which is then impossible to delete without external tools about eddiscovery HOT 6 CLOSED

LikeLakers2 avatar LikeLakers2 commented on September 22, 2024 1
You can create a custom search with an empty name, which is then impossible to delete without external tools

from eddiscovery.

Comments (6)

klightspeed avatar klightspeed commented on September 22, 2024

With the "blank name", I'm guessing this is specifically when you have scans (the wireframe sphere) selected, as the save button won't do anything for the stars search if you have not performed a search yet.

private void extButtonSave_Click(object sender, EventArgs e)
{
BaseUtils.ConditionLists cond = Valid();
if (cond != null)
{
string name = ExtendedControls.PromptSingleLine.ShowDialog(this.FindForm(), "Name:".T(EDTx.SearchScans_Name), "", "Enter Search Name:".T(EDTx.SearchScans_SN), this.FindForm().Icon);
if (name != null)
{
HistoryListQueries.Instance.Set(name, cond.ToString(), HistoryListQueries.QueryType.User);
HistoryListQueries.Instance.SaveUserQueries();
UpdateComboBoxSearches();
comboBoxSearches.SelectedIndexChanged -= ComboBoxSearches_SelectedIndexChanged;
comboBoxSearches.SelectedItem = name;
comboBoxSearches.SelectedIndexChanged += ComboBoxSearches_SelectedIndexChanged;
}
}
}

                if (name != null)

should probably be

                if (!string.IsNullOrWhiteSpace(name))

from eddiscovery.

Eahlstan avatar Eahlstan commented on September 22, 2024

if (!string.IsNullOrWhitespace(name))

I dislike that, I got a few whitespace searches to show bodies on the Surveyor without expanding everything with the search names.

from eddiscovery.

Eahlstan avatar Eahlstan commented on September 22, 2024

And in this case it's really null (and not a whitespace), so the null check either fails or isn't active when saving the search:

    {
      "Name":"",
      "Condition":"Level == 4",
      "SortCondition":"",
      "SortAscending":false
    }

from eddiscovery.

robbyxp1 avatar robbyxp1 commented on September 22, 2024

HasChars()

from eddiscovery.

Eahlstan avatar Eahlstan commented on September 22, 2024

HasChars()

I like that, it doesn't let me save an empty name, but whitespace names work.

Thought: Empty name doesn't throw an error message, it would be good if it does.

from eddiscovery.

LikeLakers2 avatar LikeLakers2 commented on September 22, 2024

[@klightspeed] With the "blank name", I'm guessing this is specifically when you have scans (the wireframe sphere) selected [...]

Yes, that's right. Sorry for not specifying - I forgot that scans weren't the only thing you can search, as I'm not only new-ish to EDDiscovery, but the vast majority of my usage of the Search panel has been to search my scans.

from eddiscovery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.