Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Filters (Invoke-FGTRestMethod) #95

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Enhance Filters (Invoke-FGTRestMethod) #95

wants to merge 9 commits into from

Conversation

Tuurtje
Copy link
Contributor

@Tuurtje Tuurtje commented Apr 10, 2020

There was something wrong with the parameter sets. Somehow they need to be on the same line as "mandatory", else all options are visible in every parameterset.

Also added the remaining filter type's (because i needed them).

notequal, notcontains, less, lessorequal, greater, greaterorequal added.

Non-working parameterset fixed.
Old Syntax output:
SYNTAX
    Invoke-FGTRestMethod [-uri] <String> [-method <String>] [-body <PSObject>] [-skip] [-vdom <String[]>] [-filter <String>] [-filter_attribute <String>] [-filter_type <String>] [-filter_value <PSObject>] [-connection <PSObject>] [<CommonParameters>]
    
    Invoke-FGTRestMethod [-uri] <String> [-method <String>] [-body <PSObject>] [-skip] [-vdom <String[]>] [-filter <String>] [-filter_attribute <String>] [-filter_type <String>] [-filter_value <PSObject>] [-connection <PSObject>] [<CommonParameters>]
    
    Invoke-FGTRestMethod [-uri] <String> [-method <String>] [-body <PSObject>] [-skip] [-vdom <String[]>] [-filter <String>] [-filter_attribute <String>] [-filter_type <String>] [-filter_value <PSObject>] [-connection <PSObject>] [<CommonParameters>]
 
New Syntax output:
SYNTAX
    Invoke-FGTRestMethod [-uri] <String> [-method <String>] [-body <PSObject>] [-skip] [-vdom <String[]>] [-connection <PSObject>] [<CommonParameters>]
    
    Invoke-FGTRestMethod [-uri] <String> [-method <String>] [-body <PSObject>] [-skip] [-vdom <String[]>] [-filter <String>] [-connection <PSObject>] [<CommonParameters>]
    
    Invoke-FGTRestMethod [-uri] <String> [-method <String>] [-body <PSObject>] [-skip] [-vdom <String[]>] [-filter_attribute <String>] [-filter_type <String>] [-filter_value <PSObject>] [-connection <PSObject>] [<CommonParameters>]
@alagoutte
Copy link
Contributor

Hi Arthur,

Thanks, All Filter work ?!

Yes, it is strange for filter... (i really need to add some test...)

@Tuurtje
Copy link
Contributor Author

Tuurtje commented Apr 10, 2020 via email

@alagoutte
Copy link
Contributor

Thanks, i will check !

@alagoutte alagoutte changed the title Filters Enhance Filters (Invoke-FGTRestMethod) Apr 10, 2020
[Parameter (Mandatory = $false)]
[Parameter (ParameterSetName = "filter")]
[Parameter(Mandatory = $false, ParameterSetName = "filter")]
[String]$filter,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't really like the idea to have directly filter parameter.. but prefer we can build filter with filter_type, attribute...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oke i will remove it. Advanced searches can be done with invoke-FGTRestMothode if needed. is the parameter name-change (filter -> filter_build) oke? This will make it consistant with Invoke-FGTRestMethode. If not i will change it back.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok for change ParameterName

@alagoutte
Copy link
Contributor

Thanks Arthur, can you add name of file on commit message ?
ippool: Fixed ParameterSets and added filter types

for example (or make a big commit with all change)
it is very strange, i don't work if you set the parametername outside of first Parameter

@Tuurtje
Copy link
Contributor Author

Tuurtje commented Apr 14, 2020 via email

@alagoutte
Copy link
Contributor

What tools do you are using for git ?

only need to make a git add of all file (or use git commit -a) after make change all files

(you can also use git rebase -i master and reword/squash/fixup and after need to make a git push -f for force)

@Tuurtje
Copy link
Contributor Author

Tuurtje commented Apr 14, 2020 via email

@poundy
Copy link
Contributor

poundy commented Apr 14, 2020

Copy past in webbrowser :-( I've got github desktop installed. will check the howto.

Welcome to that club :)
I'm waiting for the 0.5.0 release so I can get back to a state to test and tweak further because I started with copy/paste and not understanding pull requests :)

@alagoutte
Copy link
Contributor

Hi sorry guys but busy for the moment for work on PowerFGT (need to finish 2 other module)
I hope get more time end of month and release a new version next month (i will add all external contribution and add tests integration)

I can help you, if you need for git skill

@Tuurtje Tuurtje closed this by deleting the head repository Dec 23, 2022
@alagoutte
Copy link
Contributor

Hi Arthur

you can kept open it is always on my todo (but no really in the top !)

@alagoutte alagoutte reopened this Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants