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

feat(sccm): Works with multiple configurations #120

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

tolemac
Copy link
Contributor

@tolemac tolemac commented Feb 23, 2024

Hi again!

I have fear about #109, this PR have serious changes and we are working in production with code that is not in this repository, after #109 has been merged I think it will be more difficult for us to add this change, due to it we would like to make a effort to add this PR to the repo.

This PR is the same as #102, we think that it's a good feature and it has been working all days in the last year in our GLPI installation.

The feature is fully functional the only thing missing is a button to add a new SCCM Configuration.

I would like to add this but I haven't been able to...

Can you help me?

@tolemac
Copy link
Contributor Author

tolemac commented Feb 23, 2024

Yeah! :D

I have fix some odd things that made that menu didn't work at expected.
I have been able to do it looking at #109 changes!!!

I will prepare the commit and push here.

@tolemac tolemac force-pushed the multi branch 2 times, most recently from 3829d0e to b71492f Compare February 23, 2024 12:34
@tolemac
Copy link
Contributor Author

tolemac commented Feb 23, 2024

Done! it's ready for review.

It has add button and the configs can be purged, config form use standard form html with navigation and historical log.

NULL)";

$DB->queryOrDie($query, __("Error when using glpi_plugin_sccm_configs table.", "sccm")
. "<br />" . $DB->error());

} else {
if (!self::isIdAutoIncrement())
Copy link
Contributor

Choose a reason for hiding this comment

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

why did you alter ID column from autoincrement to autoincrement ?

for me, you just need to test whether the name and collection fields are present, otherwise add them

@tolemac
Copy link
Contributor Author

tolemac commented Mar 13, 2024

@stonebuzz how to have the commits to keep your commits?
If I commit and push changes on my repo/branch will we lose your 2 commits?
Or can I checkout your changes? (don't know how)

@stonebuzz
Copy link
Contributor

git fetch my_repo (yours)

git pull --rebase my_repo my_branch (multi)

@tolemac
Copy link
Contributor Author

tolemac commented Mar 13, 2024

@stonebuzz I have a question, what is the showtable.php file for?

@stonebuzz
Copy link
Contributor

I have a question, what is the showtable.php file for?

an old thing that's about to blow up ^^

don't worry about it now, I'll clean up later

@stonebuzz
Copy link
Contributor

Let me know when you've finished so I can do another review

@tolemac
Copy link
Contributor Author

tolemac commented Mar 13, 2024

Let me know when you've finished so I can do another review

I think the only thing missing is the autoincrement issue, I have answered the review, I'm waiting for your response.

@tolemac tolemac requested a review from stonebuzz April 5, 2024 06:35
@stonebuzz
Copy link
Contributor

Hi @tolemac

I've corrected and refactored the code. Can you try this new version?

@tolemac
Copy link
Contributor Author

tolemac commented Apr 5, 2024

Hi @tolemac

I've corrected and refactored the code. Can you try this new version?

I have pushed the code to production.

I have deactivate de plugin, and reactivate it.
Create a new configuration, enter on edition change several fields save changes, exit to list page, enter on details again, delete permanently ...

I have execute on demand Collect and Push automatic actions.

All work as expected, no errors on php-errors.log and sccm.log files.

It's ok for me.

@stonebuzz
Copy link
Contributor

Thanks, @tolemac,

I'll have it tested by a few people who use it before I merge it.

@tolemac
Copy link
Contributor Author

tolemac commented Apr 5, 2024

Thanks, @tolemac,

I'll have it tested by a few people who use it before I merge it.

Totally agree!

Thanks in advance. I will stay tunned.

@tolemac
Copy link
Contributor Author

tolemac commented Jul 23, 2024

@stonebuzz some news about that? still in testing?

Best regards!

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.

2 participants