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

Auto clean missing registered files on SSH data providers #42

Open
natacha-beck opened this issue Apr 14, 2015 · 1 comment
Open

Auto clean missing registered files on SSH data providers #42

natacha-beck opened this issue Apr 14, 2015 · 1 comment
Assignees
Labels
Admin Features or bugs related to administrative features Enhancement Janitor Priority: Normal

Comments

@natacha-beck
Copy link
Contributor

Related: 1756 || #37

By Pierre:

Currently I identify them using the console:

dps= SshDataProvider.where(:online => true).all
no_log; ba=[]; dps.each do |dp|
    c=dp.userfiles.count
    puts "\n\n\n######## #{dp.name} #{c} #########" 
    dp.userfiles.each_with_index do |u,i|
        r=dp.provider_file_exists?(u) || :error
        puts "#{i+1}/#{c}\t#{r}\t#{u.name}" 
        break if r == :error
        ba.push(u.id) if r == :absent
    end
end
puts "Array ba[] contains bad userfile IDs." 
@remibernard
Copy link
Contributor

This can now be done semi-automatically using the DP consistency checks (0fb36a5).

@prioux prioux modified the milestones: 4.1.0, 4.2.0 Aug 13, 2015
@prioux prioux modified the milestones: 4.2.0, 4.3.0 Nov 3, 2015
@natacha-beck natacha-beck modified the milestones: 4.3.0, 4.4.0 Mar 16, 2016
@natacha-beck natacha-beck modified the milestones: 4.4.0, 4.5.0 May 31, 2016
@prioux prioux modified the milestones: 4.5.0, 4.6.0 Aug 18, 2016
@natacha-beck natacha-beck modified the milestones: 4.6.0, 4.7.0 Nov 21, 2016
@prioux prioux modified the milestones: 4.7.0, 5.1.0 Apr 24, 2017
@prioux prioux modified the milestones: 5.1.0, 5.2.0 Nov 16, 2018
@prioux prioux modified the milestones: 5.2.0, 5.3.0 Sep 16, 2019
@prioux prioux modified the milestones: 5.3.0, 5.4.0 Dec 11, 2019
@prioux prioux added the Admin Features or bugs related to administrative features label Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Features or bugs related to administrative features Enhancement Janitor Priority: Normal
Projects
None yet
Development

No branches or pull requests

3 participants