797 Commits

Author SHA1 Message Date
Michael Chernigin
07b9b3b5a4
feat: logger (#58)
* feat: implementation of syslog logger

* feat: implementation of file logger

* feat: show time for each logged message in file and console loggers

* refactor: more convenient log masks

* refactor: move logger files into its own directory inside core

* chore: changed all qt logs to use new logger

* chore: remove unnecessery changes

* fix: creating log file in FileLogger

* refactor: refactor logger stream to have private class

* chore: remove unnecessery logs in main

* feat: make logger thread safe

* chore: get back to qt logger

* feat: enable qt-logger

* feat: logger class

* refactor: rename abstractlogger.[ch] into logger.[ch]

* chore: remove now unneeded implementation of logger stream

* chore: remove unneeded getInstance in logger manager

* refactor: use qt's log level instead

* refactor: switch between msgType instead of having a function for each

* refactor: prelude.h to include everything needed for logger
2023-08-22 17:00:12 +04:00
Michael Chernigin
ac294b87e9
ci: build and test using clang (#57)
* chore: add llvm-common to build container

* ci: run tests also on clang

* ci: run ci on all branches

* ci: fix if for clang

* fix: change package to llvm15.0

* chore: fix clang warning about assignment inside if
2023-08-21 15:59:25 +04:00
august-alt
5bd75968c8 feat: add translations for path and arguments 2023-08-07 13:43:21 +04:00
Michael Chernigin
574e7bbe48
fix: script dialog (#51)
* refactor: refactor addscriptwidget so it does not create empty item on Add

* refactor: remove check for rootItem and at this point unused findRoot function

* refactor: rename Scripts Parameters to Script Arguments in ui files

* feat: validate script before adding and notify if script path is empty

* refactor: remove not needed delegate and mapper objects from base script widget

* refactor: cleanup ui of scripts widget

* fix: fix typo in translation

* fix: open scripts directory on smb

* revert: "refactor: cleanup ui of scripts widget"

This reverts commit 28a954d9e7f9a32e8345dd41606aec6e74f345e6.

* chore: don't change formatting in scriptssnapinprivate.cpp

* fix: restrict how big script dialog can be
2023-08-04 16:48:27 +04:00
august-alt
47d8c78834
Revert "fix: fix show files button in script dialog during smb connection" (#50)
This reverts commit 742e30b6a438c3667a29e07dc99352545639c299.
2023-08-04 16:31:10 +04:00
Michael Chernigin
742e30b6a4
fix: fix show files button in script dialog during smb connection
* refactor: refactor addscriptwidget so it does not create empty item on Add

* refactor: remove check for rootItem and at this point unused findRoot function

* refactor: rename Scripts Parameters to Script Arguments in ui files

* feat: validate script before adding and notify if script path is empty

* refactor: remove not needed delegate and mapper objects from base script widget

* refactor: cleanup ui of scripts widget

* fix: fix typo in translation

* fix: open scripts directory on smb
2023-08-03 19:07:46 +04:00
Michael Chernigin
0dccea4c98
fix: remove certain pipeline elements from execution on pull request ci (#46)
* fix: don't publish container and artifacts on pull request

* fix: don't depend on gpui-build-container in other jobs if pull request

* chore: try to move conditions inside jobs

* chore: try to move condition inside each step
2023-07-31 13:57:39 +04:00
august-alt
97e22c75b5 chore: update vesion in spec file 2023-07-21 17:38:17 +04:00
Michael Chernigin
6c9d4993c3
feat: improve filter dialog (#45)
* feat: implement 'and' and 'or' elements of definitions

* fix: add product adapter to admxformat

* feat: add comments to policy bundle

* feat: update debug output

* fix!: fix hasher-useradd usage

* feat: filter dialog shows available products tree

* feat: recursively select children

* feat: allow to resize filter dialog

* chore: uncheck parent on child uncheck

* fix: get filter returns only leafs and uncheck parent on item uncheck

* chore [wip]: get both name and display name on platforms in filter

* chore: provide supported on defenitions in filter

* chore: update of filter logic: still need to figure out way to find index in a platform tree

* fix: fix keyword filter

* fix: supported on field in policy interface

* feat: find actual index in a tree

* fix: correct supported on display text in policy view

* fix: fix always passing filter ie

* chore: speed up filterPatform by caching already found platforms in a tree

* refactor: refactor building cache

* fix: fix filter dialog translating on language change in runtime

* chore: make translations of keyword search options clear

* chore: close dialog when main window closes

* refactor: move getPlatformIndex into PlatformModel

* fix: fix segfault on language change after applying platform filters by rebuilding cache

* Revert "chore: close dialog when main window closes"

This reverts commit 2c428b004dea7e77e3c8da722e8eaaf2a7d01402.

* fix: clean all filters when language changes

* refactor: rename retranslateMenuItems to setMenuItemNames

* fix: add qstring hash and missing header

* fix: add qstring hash only if QT version is below 5.14

* feat: implement partially checked check boxes in platform tree

---------

Co-authored-by: august-alt <77973983+august-alt@users.noreply.github.com>
2023-07-21 17:22:04 +04:00
august-alt
0638908843 chore: update vesion in spec file 2023-07-19 16:58:46 +04:00
august-alt
59944735a1
fix: fix multiple errors in scripts implementation (#44)
Following changes were made:
- fix: add sections to scripts
- fix: fix scripts display
- fix: fix logic of scripts loading
- fix: fix no section crash
- fix: scripts plugin: change ini files path and create default dirs
- fix: create folder for scripts
- fix: improve debug of genericwriter
- fix: fix add script widget navigation order
- fix: disable edit triggers in script widget
- fix: fix scripts category in scriptssnapinprivate.cpp
- feat: add power shell script order entries to combobox
- feat: set format to be utf16le in ini files
- feat: disable order widget
- fix: fix conversion to wide characters in iniformat
- chore: refactor io generic writer
2023-07-19 16:54:40 +04:00
august-alt
69aaf409b5 chore: update vesion in spec file 2023-07-14 11:36:50 +04:00
august-alt
68e603d4c7
fix: fix comment file name (#43)
Following fixes were added:
- Adjust localized comments.
- Fix comment file name.
- Fix cmtx schema to support proper revision, version and minRequiredVersion.
2023-07-14 11:33:28 +04:00
august-alt
82f40833c1 chore: update vesion in spec file 2023-07-13 17:46:25 +04:00
august-alt
99caf792ff
feat: create comments plugin (#41)
Following actions were taken:
-feat: add cmtx plugin format
-feat: add cmtl plugin format
-feat: add comments plugin
-feat: add xsdcommentsadapter
-fix: fix spec file
-feat: add policy comment file
-fix: fix cmtx.xsd schema
-feat: add policy namespaces
-feat: add comment resources file implementation
-feat: implement cmtl format
-fix: fix cmtl plugin
-feat: implement adater for cmtl file
-chore: move headers to model folder
-feat: add bulk of comment snap-in
-chore: move comments model to administrative templates plugin
-feat: add comments model
-fix: fix spec file
-feat: implement comment loading
-fix: implement policy search
-feat: implement schema adapter
-feat: implement policy namespace parsing
-feat: started to implement comment saving
-feat: unify interface of comment files
-fix: fix null pointer
-feat: update save procedure
-feat: add namespace definition
-fix: fix comment text and namespace value
-fix: append namespaces
-fix: fix resource names
-fix: fix namespace model
-fix: fix namespace indices
-fix: fix addition of comments to model
-fix: prevent save of empty comments
2023-07-13 15:47:28 +04:00
august-alt
b56f3b2b6c feat: update .gitignore 2023-06-29 15:33:40 +04:00
august-alt
f0c998f4f9 feat: remove auto generated files 2023-06-29 15:33:40 +04:00
august-alt
f8324b0c75 chore: refactor preferences cmakelists.txt to use xsdutils 2023-06-29 15:16:27 +04:00
august-alt
85d45fe0d8 feat: add cmtx schema 2023-06-29 15:09:52 +04:00
august-alt
770b326d12 feat: add cmtl schema 2023-06-29 15:09:07 +04:00
august-alt
f8df2ad964 feat: add xsd utils for libraries 2023-06-29 15:08:40 +04:00
august-alt
517fdf5040 fix!: fix hasher-useradd usage 2023-06-28 17:46:14 +04:00
august-alt
8037f35de8 build!: remove codeql workflow 2023-06-28 16:59:47 +04:00
august-alt
c5a3b095d4 fix!: replace numbers with constants for parent and current uuid roles 2023-06-27 16:55:54 +04:00
august-alt
f13ddd33ad chore: remove unused element from template filter ui 2023-06-26 12:55:53 +04:00
Michael Chernigin
9a58d94c35
chore: refactor filter model and dialog (#40)
* refactor: refactoring of filter model

* refactor: more refactoring of filter model diaglog

* chore: hide inactive managed and commented options

* fix: one less memory leak

* chore: added paranthesis in logical expr
2023-06-26 12:27:21 +04:00
august-alt
8cef289f46 fix!: add #include <cstdint> to pregdata.h 2023-06-21 15:20:31 +04:00
august-alt
67613c6047 chore: update vesion in spec file 2023-06-21 15:11:18 +04:00
august-alt
6ca0b1e5d7 fix: fix filter and platform models update 2023-06-21 14:37:03 +04:00
august-alt
fec1ceb62f feat: add check for compiler flag support 2023-06-20 19:39:49 +04:00
august-alt
9db5f1fea5 feat!: switch to cmake 3.14 or higher 2023-06-20 19:39:23 +04:00
august-alt
df0b86ac75 chore: update vesion in spec file 2023-06-20 19:15:23 +04:00
august-alt
1908488b00
feat: implement filter dialog for administrative templates (#39)
* feat: add template filter

* feat: implement filter

* chore: add policyelement includes

* chore: remove template filters form mainwindow

* feat: add platform model

* chore: refactor template filter dialog

* chore: refactor administrative template snapin

* feat: add translation for filters

* fix: fix tests
2023-06-20 19:11:59 +04:00
Michael Chernigin
1d36ccc503
feat: improve continuous integration process (#36)
Description:
    Add docker buildx to create containers.
    Resolve problems with CodeQL.
    Update CI pipeline and separate main workflow into pieces. Add build, build container and test workflows.

History:
* Test build and push action
* Update CodeQL analysis from v1 to v2
* Add dependencies
* Use Ninja instead of GNU Make
* Switch back to GNU Make & fix main CI
* Fix tabs in main.yml
* Add build arguments
* Change mode to github actions
* Add run stage
* Push to ghcr
* Bump up of action versions
* Run container
* Use same image in test
* Separate workflow for build docker image
* Try another name for action
* All on push
* Proper names
* Correct order
* Add sudo in test
* No sudo
* Add ctest as dependency in Dockerfile and pull image first in build
* Main workflow to run others as jobs
* Fix order
* Checkout to code in build
* Checkout in tests
* Run CodeQL in same container
* Speed up CodeQL build by using Make directly
* Mount RPM directory
* Test on i386 also
* Removed unused parameters and pull specific platform in build
* Set target for gear-rpm
* Back to 2 images
* Set permissions for packages
* Get uid and gid
* Remove QEMU
* Try to utilize mode caching by having separate cache between branches and architectures
* Try not to use actions
2023-06-09 12:39:15 +04:00
august-alt
fc928f54c9 chore: update vesion in spec file 2023-06-07 16:53:31 +04:00
august-alt
107b270702 Merge branch 'namespace_fixup' 2023-06-07 16:49:22 +04:00
august-alt
a5c5c8c9f7 fix!: fix list saving 2023-06-07 03:40:00 +04:00
august-alt
10671172f7 fix: fix namespaces 2023-05-30 14:40:35 +04:00
Michael Chernigin
1a6bf7bdbd
docs: add readme improvements (#35)
* docs: screenshot and build instruction in readme

* fix: screenshot of english version
2023-05-29 11:27:09 +04:00
august-alt
97f3f0aef8
fix!: fix ability to write boolean policies with just valueNames (#34)
* wip: add naive impementation of valueName only policy

* refactor: cleanup for implementation valueName only policies (#33)

---------

Co-authored-by: Michael Chernigin <59616661+mchernigin@users.noreply.github.com>
2023-05-25 20:31:47 +04:00
august-alt
2a3de65619 chore: update vesion in spec file 2023-05-19 15:00:47 +04:00
august-alt
4607d7c4fa fix: fix utility launch without a path 2023-04-18 12:36:49 +04:00
AlexSP0
e448cc35c4
fix: added type checking when setting a value 2023-04-13 15:49:26 +04:00
august-alt
a83ff03832 chore: update vesion in spec file 2023-04-11 18:23:20 +04:00
AlexSP0
0fb3211b76
fix: fix crash when pressing the cancel button in the script module 2023-04-11 18:13:07 +04:00
august-alt
18aa62bb7a fix: fix presentation builder test 2023-04-11 17:48:38 +04:00
august-alt
bcdcf6785f fix: add ctest 2023-04-11 17:17:50 +04:00
august-alt
d82d055935 fix: add rpm-build 2023-04-11 16:52:07 +04:00
august-alt
482669cb6c fix: update cmake config 2023-04-11 16:34:58 +04:00
august-alt
7ffdda83b5 fix: remove sudo command 2023-04-11 16:17:46 +04:00